Conditional content templates are not a feature of Gravity Forms. However, you can modify the content template and test for the existence of a value, then output the heading only if the field contains a value. You can use the gform_post_submission hook to change the post body after the form is submitted.
The example there shows modifying the post. You would do something similar, but you would use some statements to see if the field has a value, and if it does, add the heading and the field to the post body. Otherwise, don't add the heading. You'll be creating your own post body here rather than using the content template,
Posted 13 years ago on Saturday September 24, 2011 |
Permalink