gravity forms plugin - How to hide custom field text if field left blank -
i have site form created gravity forms. visitor fills out form , populates custom post type. fields user completes custom fields have created plugin "advanced custom fields".
the form has series of questions user fills out, leave blank, not required.
this code used output:
i need figure out how hide text 'birthday' if birthday field left blank.
you should able this:
<?php if( get_field( "birthday" ) ) { the_field( "birthday" ); } ?>
source: http://www.advancedcustomfields.com/resources/functions/the_field/
Comments
Post a Comment