And of course, it was there all along, just hiding ...
Just in case anyone needs to know, I'm using ACF with GForms and was embedding like this:
<?php
$form = get_field('CUSTOM-FIELD');
gravity_form_enqueue_scripts($form->id, true);
gravity_form($form->id, false, true, false, '', true, 1);
?>
The above is fine if you want the confirmation message and the form to be displayed together.
If you want the form to disappear just change the last true to false:
<?php
$form = get_field('CUSTOM-FIELD');
gravity_form_enqueue_scripts($form->id, true);
gravity_form($form->id, false, true, false, '', false, 1);
?>
Posted 11 years ago on Monday June 24, 2013 |
Permalink