PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

remove form on confirmation

  1. I'm 99.9% sure we used to be able to do this but I cannot seem to find it now.

    Form gets submitted, is removed and confirmation message is displayed in its place.
    (rather than message appearing atop the form)
    Am I being a donut or is/ was this not possible?

    Posted 11 years ago on Sunday June 23, 2013 | Permalink
  2. 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
  3. Glad you got it sorted and thanks for posting.

    Posted 11 years ago on Tuesday June 25, 2013 | Permalink

This topic has been resolved and has been closed to new replies.