Gravity Forms pre populate column in list field

I’m trying to pre-populate a list field on Gravity forms. The following code works to a point but only prepopulates row 1. Something obvious i’m sure, but I can’t work it out!

add_filter( ‘gform_field_value_Expenditure_List’, ‘Expenditure_List’ );
function Expenditure_List( $value ) {
$list_array = array(
array(
“Type” => “Rent”,
“Cost” => “”,
“Frequency” => “”
),
array(
“Type” => “Council Tax”,
“Cost” => “”,
“Frequency” => “”
),
);
return $list_array;
}

Read more here:: Gravity Forms pre populate column in list field

Leave a Reply

Your email address will not be published. Required fields are marked *