Monday, 26 August 2013

Form Object Gravity Forms

Form Object Gravity Forms References Gravity Forms. I try to manipulate the form fields before they are rendered with add_filter(\"gform_pre_render\", \"my_function\", 10, 5); function my_function($form){ ... $form[\"fields\"][0][\"content\"] = \'This is a html-block\' } Like this, I can pass the html-block\'s content assumed the html is the first field on the form. How can I target a field by id? Let\'s say the above html-block-field has the field id 13.

No comments:

Post a Comment