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

Popular posts from this blog

php - Calling a template part from a post -

Firefox SVG shape not printing when it has stroke -

How to mention the localhost in android -