# Hide form conditionally \[RESOLVED\]

**URL:** <https://community.gravityforms.com/t/hide-form-conditionally-resolved/3939>\
**Category:** Get Help\
**Tags:** custom, gravity-flow, gravity-wiz\
**Created:** [February 17, 2020, 12:55pm UTC](https://community.gravityforms.com/t/hide-form-conditionally-resolved/3939 "2020-02-17T12:55:19Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![PeterB](https://sea2.discourse-cdn.com/flex020/user_avatar/community.gravityforms.com/peterb/32/1287_2.png) [@PeterB](https://community.gravityforms.com/u/PeterB)\
**Post date:** [February 17, 2020, 12:55pm UTC](https://community.gravityforms.com/t/hide-form-conditionally-resolved/3939/1 "2020-02-17T12:55:19Z")

</div>

Hi, for research I want the ‘end-measurement form’ to show up conditionally when the ‘begin-measurement form’ is done. How can I solve this?

---

<div class="post-metadata">

**Author:** ![chrishajer](https://sea2.discourse-cdn.com/flex020/user_avatar/community.gravityforms.com/chrishajer/32/88_2.png) [@chrishajer](https://community.gravityforms.com/u/chrishajer)\
**Post date:** [February 17, 2020, 4:39pm UTC](https://community.gravityforms.com/t/hide-form-conditionally-resolved/3939/2 "2020-02-17T16:39:42Z")

</div>

Do they need to be filled out consecutively (if so, you can direct them in the Confirmation from the 'begin-measurement form to the ‘end-measurement form’) or might they come back at some later point and you need to make sure that the **begin** form was already filled out before they can use the **end** form?

---

<div class="post-metadata">

**Author:** ![PeterB](https://sea2.discourse-cdn.com/flex020/user_avatar/community.gravityforms.com/peterb/32/1287_2.png) [@PeterB](https://community.gravityforms.com/u/PeterB)\
**Post date:** [February 17, 2020, 7:09pm UTC](https://community.gravityforms.com/t/hide-form-conditionally-resolved/3939/3 "2020-02-17T19:09:22Z")

</div>

They must fill the end-form at a later moment. That is, after begin-form is done.  
So I want to hide the end-form to prevent mistakes. And I want to embed both form at the same page. I that way I have one page for fill in both forms. So on that page: first is ‘begin-form’ showing. After filling in the begin-form (it will hide with a perk), so in essential that page becomes blanc. That’s a nice moment to show up the end-form on that page (from behind a ‘conditional hide’).

---

<div class="post-metadata">

**Author:** ![chrishajer](https://sea2.discourse-cdn.com/flex020/user_avatar/community.gravityforms.com/chrishajer/32/88_2.png) [@chrishajer](https://community.gravityforms.com/u/chrishajer)\
**Post date:** [February 17, 2020, 11:40pm UTC](https://community.gravityforms.com/t/hide-form-conditionally-resolved/3939/4 "2020-02-17T23:40:49Z")

</div>

Thank you Peter.

Because your visitor is going to have to submit multiple forms, and the forms they see depend on whether or not they have submitted the “begin” form. I think you will need to use the User Registration add-on, to register the user on your site.

Once you have done that, you are going to need to see if a specific value was submitted in an earlier form, before they can see the ‘end’ form. All this will rely on the visitor being logged in. You may want to restrict the form to logged in user’s only.

Once they have submitted the first form, you could use this method to verify that they have submitted the first form: [https://gravitywiz.com/require-existing-value-submission-gravity-forms/](https://gravitywiz.com/require-existing-value-submission-gravity-forms/)

There are other possible ways of doing this as well so these are mostly just ideas rather than anything else.

There is a filter you can use to prevent a form from showing if your code determines it should not be shown:

> **[gform\_get\_form\_filter - Gravity Forms Documentation](https://docs.gravityforms.com/gform_get_form_filter/)**
>
> This filter allows you to override the form's HTML after it has been generated but before it has been displayed.

There is also a method to use conditional logic based on the logged in user:

> **[Gravity Forms Conditional Logic Based on User Login - Gravity Wiz](https://gravitywiz.com/gravity-forms-conditional-logic-based-on-user-login/)**
>
> View DemoFebruary 22nd, 2014: Gravity Forms now supports conditional logic rules comparing against empty values. Updated the article verbiage accordingly. Have you ever wanted to conditionally show or hide a field depending on whether the user is...

You may also find using something like Gravity Flow useful (to give the user a checklist of forms to complete in order, with yours being the ‘begin’ and 'end form):

> **[Checklists - Gravity Flow](https://docs.gravityflow.io/article/140-checklists)**
>
> The Gravity Flow Checklists Extension allows administrators to publish a series of forms each requiring a single submission. The Checklists page looks like this

Since your visitor will be coming back to the page after some time, to fill out the “end-form”, you will need to somehow

---

<div class="post-metadata">

**Author:** ![PeterB](https://sea2.discourse-cdn.com/flex020/user_avatar/community.gravityforms.com/peterb/32/1287_2.png) [@PeterB](https://community.gravityforms.com/u/PeterB)\
**Post date:** [March 13, 2020, 4:03pm UTC](https://community.gravityforms.com/t/hide-form-conditionally-resolved/3939/5 "2020-03-13T16:03:36Z")

</div>

HI Chris, I had to find time. Thanks for informing me. At the end the solution was very easy. I just past the endform short code under the beginform shortcode. Simple: they don’t see the second form until after completing the first one! (which I hide with a gravity wiz perk).

Thanks again and greetings,  
Peter

---

<div class="post-metadata">

**Author:** ![chrishajer](https://sea2.discourse-cdn.com/flex020/user_avatar/community.gravityforms.com/chrishajer/32/88_2.png) [@chrishajer](https://community.gravityforms.com/u/chrishajer)\
**Post date:** [March 13, 2020, 4:17pm UTC](https://community.gravityforms.com/t/hide-form-conditionally-resolved/3939/6 "2020-03-13T16:17:41Z")

</div>


