# Conditionally determine which form to show \[RESOLVED\]

**URL:** <https://community.gravityforms.com/t/conditionally-determine-which-form-to-show-resolved/8814>\
**Category:** Get Help\
**Tags:** wordpress, conditional-logic\
**Created:** [April 22, 2021, 8:31pm UTC](https://community.gravityforms.com/t/conditionally-determine-which-form-to-show-resolved/8814 "2021-04-22T20:31:12Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![user605a5343cd3c7188](https://avatars.discourse-cdn.com/v4/letter/u/f08c70/32.png) [@user605a5343cd3c7188](https://community.gravityforms.com/u/user605a5343cd3c7188)\
**Post date:** [April 22, 2021, 8:31pm UTC](https://community.gravityforms.com/t/conditionally-determine-which-form-to-show-resolved/8814/1 "2021-04-22T20:31:12Z")

</div>

Hi Everyone,

I have two forms and a custom merge code and I’m trying to use it to determine which form to show, however it doesn’t seem to work:

```
[gravityforms action="conditional" merge_tag="{predict_form_id}" condition="is" value="1"] 
    [gravityform id="1" title="false" description="false"] 
[/gravityforms] 
[gravityforms action="conditional" merge_tag="{predict_form_id}" condition="is" value="2"] 
    [gravityform id="2" title="false" description="false"] 
[/gravityforms]

```

is this sort of logic possible? Or do I have to have two separate pages?

Thanks,

---

<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:** [April 23, 2021, 5:41pm UTC](https://community.gravityforms.com/t/conditionally-determine-which-form-to-show-resolved/8814/2 "2021-04-23T17:41:04Z")

</div>

Hi Mark. It’s not possible to do like that. This is interesting. Can you explain how it needs to work? I think you’re going to have to handle the logic outside of Gravity Forms to determine which form needs to be shown.

---

<div class="post-metadata">

**Author:** ![user605a5343cd3c7188](https://avatars.discourse-cdn.com/v4/letter/u/f08c70/32.png) [@user605a5343cd3c7188](https://community.gravityforms.com/u/user605a5343cd3c7188)\
**Post date:** [April 26, 2021, 2:25pm UTC](https://community.gravityforms.com/t/conditionally-determine-which-form-to-show-resolved/8814/3 "2021-04-26T14:25:07Z")

</div>

Hi Chris,

Thanks for the information. Basically I have two different forms for two different categories of users. I would like the users to be able to visit the same page but receive the appropriate form.

So we have users A and B, and when they visit the “Calculator” page, I would like to show them Form 1 or Form 2.

I was able to get this to work by creating a custom Wordpress shortcode that contained the gravity forms shortcode.

Thanks

---

<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:** [April 28, 2021, 5:24pm UTC](https://community.gravityforms.com/t/conditionally-determine-which-form-to-show-resolved/8814/4 "2021-04-28T17:24:57Z")

</div>

That’s a good way of doing it, well before Gravity Forms. Thanks for the update.

---

<div class="post-metadata">

**Author:** ![richardw8k](https://sea2.discourse-cdn.com/flex020/user_avatar/community.gravityforms.com/richardw8k/32/2354_2.png) [@richardw8k](https://community.gravityforms.com/u/richardw8k)\
**Post date:** [January 5, 2022, 8:38am UTC](https://community.gravityforms.com/t/conditionally-determine-which-form-to-show-resolved/8814/5 "2022-01-05T08:38:24Z")

</div>

Closed on January 5, 2022, 8:38am UTC


