I am trying to use the gform_field_value filter to populate some checkboxes. I have successfully populated single fields, but it doesn't seem to like an array. I get a foreach error. This is what I've tried.
add_filter("gform_field_value_payment_options", "populate_payment_options");
function populate_payment_options($value){
$populate_payment[] = $pay_paypal;
$populate_payment[] = $pay_web;
return $populate_payment;
}
Any ideas?