php - Gravity Forms add_filter -
i'm looking assistance @ applying add_filter gravity forms. i've done research , found link http://www.gravityhelp.com/documentation/page/gform_pre_render rough illustration of how apply custom filter. unfortunately i've had no luck getting work. i'm not receiving errors. pretty much want display echo'd text @ top or bottom of radio button when user select one.
<ul class="gfield_radio" id="input_7_16"> <li class="gchoice_16_0"> <input name="input_16" type="radio" value="plan 180" id="choice_16_0" tabindex="1"> <label for="choice_16_0" id="label_16_0">op1</label> </li> <li class="gchoice_16_1"> <input name="input_16" type="radio" value="plan 420" id="choice_16_1" tabindex="2"> <label for="choice_16_1" id="label_16_1">op2</label> </li> <li class="gchoice_16_2"> <input name="input_16" type="radio" value="plan 560" id="choice_16_2" tabindex="3"> <label for="choice_16_2" id="label_16_2">op3</label>< /li> </ul>
gravity form add together filter
add_filter('gform_pre_render_6', 'populate_text'); function populate_text($form){ if ($field["id"] == choice_16_0) { echo '<br/>your start date saturday ' , getstartsat(); } else if ($field["id"] == choice_16_1 ) { echo '<br/>your start date mon ' , getstartmon(); } else if ($field["id"] == choice_16_2 ) { echo '<br/>your start date saturday ' , getstartsat(), 'or <br/> mon ' , getstartmon(); } homecoming $form; }
are submitting forms? pre render info getting pre render before form getting loaded , loading 'pre render' info. works multiple forms and/or custom db queries.
a mix of conditional logic & text fields take care of if not submitting anything. there dozens of methods echo text in gravity forms.
php wordpress-plugin gravity-forms-plugin
No comments:
Post a Comment