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.

Can conditional logic be used to display a form depending on another form?

  1. I want to have a tiered pricing for a weekend event depending upon the number of tickets sold.
    First tier: 12 tickets at $99
    Second tier: 24 tickets at $125
    Third tier: 36 tickets at $140
    Forth tier : 18 tickets at $155
    Outside of setting up 4 different forms with limited number of entries for each tier and checking to see when the tickets run out for a tier manually, is there a way to automatically
    have the 2nd tier form display once the 1st tier runs out, 3rd tier form display once the 2nd tier runs out, etc?
    Thanks!
    Anne

    Posted 12 years ago on Wednesday February 8, 2012 | Permalink
  2. Hi apouch,

    Your best bet is to use the gform_pre_render hook to dynamically populate the pricing for the ticket field based on the number of purchased tickets. Here is a function that will allow you to readily query the entry data to get the number of tickets sold.

    http://pastie.org/3381823

    For more details on dynamically loading data for a field, see this tutorial:

    http://www.gravityhelp.com/documentation/page/Dynamically_Populating_Drop_Down_Fields

    Posted 12 years ago on Tuesday February 14, 2012 | Permalink
  3. I actually got this to work by putting the shortcode for the next form in the tier in the message field for when the limit is reached. Pretty cool!

    Posted 12 years ago on Monday February 20, 2012 | Permalink