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.

passing values to pricing

  1. 1. I have two options for packages, and depending on what they select depends on the price field. How do I pass these fields to get a specific price once the button is chosen?

    2. Having trouble with a text box where they type in a coupon code then the prices would be different?

    thnx
    .

    Posted 13 years ago on Monday October 10, 2011 | Permalink
  2. Dany
    Member

    Great question..

    Posted 13 years ago on Monday October 10, 2011 | Permalink
  3. 1) I'm not entirely sure what you are asking. If you have 2 package options then add a Product Field to your form. Edit it, give it a Field Label of Select A Package. Choose Drop Down or Radio Button for it's Field Type using it's Field Type drop down. Populate the choices with your 2 package options.

    See this screenshot: http://i.imgur.com/kTxrV.png

    If you want to LINK to this form and pass which package they want, then you would edit the Product Field you added above, choose the Advanced tab and check the "Allow field to be populated dynamically" and give it a parameter name of "package" without the quotes. Like this: http://i.imgur.com/nyXbM.png

    Save your form. Now to pass which package should be selected when linking to the page containing the form you would pass package=Name with Name being the package they selected. For example in my example above it would be something like:

    http://mysite.com/myform?package=Second%20Package

    The %20 is used in place of spaces to properly encode the URL. If you do what I described above then that would pre-select that package from my Product Field that I added.

    If you add a Total Field to your form.. the Total would then reflect the pricing based on the fields selected.

    2) Gravity Forms and the PayPal Add-On do not currently have coupon code capabilities. So i'm not sure what you are asking. There is no coupon code functionality. It's a feature we plan on introducing in the future.

    Posted 13 years ago on Tuesday October 11, 2011 | Permalink