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.

Call a form within a form

  1. It would be great to call an existing form within a form, or treat some forms like a snippet rather than recreating parts of forms that you already have in other forms

    Posted 12 years ago on Thursday February 2, 2012 | Permalink
  2. Hi, Rookie,

    What are you trying to do?

    If you have forms that do very similar things, you could make one form and use conditional logic to show/hide fields based on user input.

    Posted 12 years ago on Friday February 10, 2012 | Permalink
  3. RealDesign
    Member

    I am looking for a very similar thing I think.
    I have a cookbook purchase form that I need to have link to different paypal accounts (ie if they choose edition A, then the payment is processed by one paypal account and if they choose edition B, then the payment is processed by a completely different paypal account)
    Because of the limit of one feed per form, I thinking that if they selected a particular edition in a drop-down field, then it would show one form (with one paypal feed) and if the chose another edition, it would show another form (with the second paypal feed) does that make sense?

    If you have any suggestions for a different way to manage it, then I am all ears!

    http://roberts.realdesigngraphics.com/wp/cookbook-order-form/

    Posted 12 years ago on Sunday February 19, 2012 | Permalink
  4. Hi, RealDesign,

    Make sure you have the latest version of the PayPal add-on (v1.4) because with it you can setup multiple feeds for a form. You setup the PayPal condition to control what value on the form causes which feed to be used. This sounds like exactly what you need.

    Posted 12 years ago on Monday February 20, 2012 | Permalink
  5. RealDesign
    Member

    I am using 1.41 and I must be super dense but I couldn't figure out how to get specify which feed to use if they select a specific school (the edition of the cookbook)

    Posted 12 years ago on Monday February 20, 2012 | Permalink
  6. Hi, RealDesign,

    On the PayPal feed setup there is a setting called PayPal condition. When you enable that you can use the value from a drop down to determine when that feed runs. If you had two cook book editions, you would setup one feed to have the condition setup to Send to PayPal when the edition is A and then a second feed setup to Send to PayPal when the edition is B. See this screenshot, it should make it clearer - http://grab.by/c2c4 . I setup a quick form with a Product field as a drop down with my two editions as the products.

    Posted 12 years ago on Monday February 20, 2012 | Permalink
  7. RealDesign
    Member

    Perfect ... thanks!

    Can I do a redirect based on the same idea ... if it ia "A" the got page "a" if it is "B" then they go to page "b"?

    Posted 12 years ago on Tuesday February 21, 2012 | Permalink
  8. Hi, RealDesign,

    To do a redirect based on a field selection, you can use the Gravity Forms hook "gform_confirmation" (http://www.gravityhelp.com/documentation/page/Gform_confirmation).

    Take a look at the example I provided to a user in this topic:
    http://www.gravityhelp.com/forums/topic/need-drop-down-form-to-go-to-pages-within-the-site

    In the code there is a line "switch ($lead[1])", you would change the number to be the id of the field you are using the values of to determine where to redirect. Then you can change the text to be whatever you have in your field and redirect to appropriate URL based on that.

    Posted 12 years ago on Tuesday February 28, 2012 | Permalink
  9. Hi Dana, I just found my way back to this topic... In answer to your question...
    I have a small form that I use on a landscape gardners website that lists some details about a garden, basically it asks for the garden name, a description, and upload a photo, then it asks if he wants to load another garden (I use conditional logic here if he answers yes) and repeat the same questions... When designing the form it would be nice to be able to loop the form until he says no rather than having to labouriously set up conditional section after conditional section and hope he doesn't have more gardens than I have allowed for. Hope that makes sense to you

    Posted 12 years ago on Thursday March 15, 2012 | Permalink

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