I'm creating a form like so:
[gravityform id="2" name="foo" field_values="a=b"]
I've got a custom field which catches the value of 'a' in this case (having set the proper options to catch the value of course):
add_action('gform_field_content', 'eo_add_field_schedule', 10, 5);
function eo_add_field_schedule($content, $field, $value, $lead_id, $form_id)
{
if ($field['type'] == 'schedule') {
var_dump($value);
}
return $content;
}
On page load, the dump correctly displays 'b' but when posting, the value remains empty. This issue pops up once the form has validation errors.
Any idea's on this one? Thanks!