Hi,
I have a form where a user can enter events into a 4 column list, where I am pre-populating the second column with tomorrow's date.
//Prepopulate list with tomorrow's date
function populate_date($value){
$current_date = date( "d/m/Y", strtotime( "tomorrow" ) );
return array( "",$current_date,"","" );
}
add_filter("gform_field_value_list", "populate_date");
This works for the first row, which makes sense considering I am returning a one row array. However, I was wondering if there was an easy way to pre-populate any extra rows that are added by the user, without having to return an array with an arbitrary number of rows.