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.

Link to form, conditional preselection...

  1. detroit
    Member

    I'm concerned about the ability to create dynamic form links. Say for example I have 60 Products, and each has a link on the bottom that says "inquire more about this machine". I need that link to determine a form selection based upon the link they click. You know, like javascript. That way the part of the form which asks the product you're inquiring about is already selected in that drop down section of the form. Our company's are investing in 5 licenses, but the form system needs to do this. Is it possible to get a response by know tomorrow?

    Posted 12 years ago on Sunday September 30, 2012 | Permalink
  2. You can accomplish this in several different ways. You can use the gform_pre_render filter to modify the form before it is shown to the user. Or your link can set a parameter in the query string, and your form can be set up to accept that parameter dynamically. So, you could have the link say http://example.com/?shoe=nike and then your form will have a field with a parameter name of "shoe" and you just set its value to nike.

    Here is a more complex example. You can change any of these values in this query string:

    fullname
    highschool
    fruit
    shoe

    If you leave any of them out, I have default values set which will pre-populate the fields.

    http://gravity.chrishajer.com/pre-populate-everything/?fullname=Chris%20Hajer&fruit=tomato

    http://gravity.chrishajer.com/pre-populate-everything/?fruit=orange&fullname=President&shoe=9

    http://gravity.chrishajer.com/pre-populate-everything/?wontwork=gravity

    Posted 12 years ago on Sunday September 30, 2012 | Permalink
  3. detroit
    Member

    Wait so how do I setup the form to do that? Where is it in the form builder?

    Posted 12 years ago on Monday October 1, 2012 | Permalink
  4. If you have already purchased Gravity Forms, we are talking about this in the wrong area. This is a pre-purchase forum, not for regular support.

    However, you can allow a field to be "populated dynamically" on the advanced tab of each field. It's documented here: http://www.gravityhelp.com/documentation/page/Allow_field_to_be_populated_dynamically

    Posted 12 years ago on Monday October 1, 2012 | Permalink
  5. detroit
    Member

    Oh! I just found it in the advanced setting derp. You guys are incredible. If I bought 6 licenses where can I find a coupon?

    Posted 12 years ago on Monday October 1, 2012 | Permalink
  6. I don't have any specific information regarding coupon codes, but Google knows a lot of them which will work for you.

    Posted 12 years ago on Monday October 1, 2012 | Permalink

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