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.

Combine two forms

  1. Hi,

    At this moment I have a couple of order forms on my website, so visitors can order my food products online. Once in a while(weekly or monthly), I have some special products or price promotions of some products. These specials/promotions are displayed at the top of some of the forms.

    At this moment, everytime my specials or promotions change, I have to change every form one by one.

    The ideal situation is that I only have to change it once somewhere in Gravity Forms, and that all the other forms are updated automatically. Is this possible with Gravity Forms?
    Because now I have two different forms: 1 with the specials/promotions and 1 normal form, but I would like to combine them.

    Thanks

    Posted 13 years ago on Monday February 13, 2012 | Permalink
  2. Hi Martijn,

    The only solution that comes to mind is dynamically loading your product options for each form from some sort of data array in your code. Which kinds of product fields are you using?

    Posted 13 years ago on Wednesday February 15, 2012 | Permalink
  3. Hi David,

    Thanks for your reply.

    I'm using text fields for the products. There's a label with the product name, and a text input field where the user can fill in how many of the products they want.
    And there's one date field for the delivery date.

    Posted 13 years ago on Thursday February 16, 2012 | Permalink
  4. Hi Martijn,

    Check out this technique for loading options into a drop down field.

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

    You can use this same concept of altering field options/inputs before the form loads and actually alter the product details.

    For single text product fields you can modify the basePrice and label to change the price and title of the product. For multi-option product fields (drop downs, radio buttons) you can modify the "choices" just like a normal drop down.

    Posted 13 years ago on Thursday February 16, 2012 | Permalink
  5. Hi David,

    Thanks for the link to the documentation. This seems like a good solution. But for me, as a non-programmer, it's very much new information ;)
    I don't have an idea how to populate the field with my products.

    In the doc, they are dynamically loading posts or custom post types. I understand that method, but don't know how to load the form options from Gravity Forms.

    Posted 13 years ago on Friday February 17, 2012 | Permalink
  6. Someone who can help me out with this?

    Posted 13 years ago on Thursday February 23, 2012 | Permalink