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.

Gravity Forms URL Redirection, Query String, Price

  1. Hello,
    First off, I love this plugin.

    I am trying to construct a page where people can buy tickets for a fundraiser, and then be redirected to our donation page to checkout. The problem is that the donation page wants dollar amounts in whole #'s "50". When I have GForms populate the redirect url query string it includes "$50.00" is there a way to change this behavior?

    I do not really need to be using to new price stuff, I tried it an alternate way with 'values' and a dropdown, but I could only populate the query string with the Label and not the Value.

    I know I could add another redirect, that will fix up the URL, but that seems kludgy.

    --------
    In a nutshell,
    Tickets are $50
    The dropdown should say 1,2,3,4 etc... Tickets. This will increase the price 50,100,150,200.
    When the form is submitted, do redirection, include query string.
    *The Number in the query string should be a whole dollar amount, no punctuation.*
    --------
    The Form...
    http://nscikids.org/rsvp/

    The query sting also includes the email address, this part works great.

    Posted 13 years ago on Thursday April 7, 2011 | Permalink
  2. Currently it only passes the currency amount with the symbol.

    However, if you are fine with using an on-pricing field you CAN pass the value of the drop down and not the option label by telling the variable to use the value instead.

    For example:

    {My Dropdown:1}

    Change to:

    {My Dropdown:1:value}

    This would output the value of the drop down field and not the option name.

    Posted 13 years ago on Thursday April 7, 2011 | Permalink
  3. Thats the ticket!
    Unfortunately I've already written the redirect... But I'll keep this in mind!

    Posted 13 years ago on Thursday April 7, 2011 | Permalink
  4. sirspacey
    Member

    Maybe write some documentation on this and put it into the "?" icon by the form.

    Posted 12 years ago on Friday August 12, 2011 | Permalink
  5. sirspacey
    Member

    Ok this syntax passes the label and the value, what if you just want the value?

    Posted 12 years ago on Friday August 12, 2011 | Permalink
  6. @sirspacey The merge tags by default pass the label, if you append :value to the merge tag it passes the value.

    This would pass the label:
    {My Dropdown:1}

    This would pass the value:
    {My Dropdown:1:value}

    This only applies to fields that have a label and a value such as drop down, radio button and checkbox field types.

    We will be adding merge tag documentation soon. The :value was an undocumented feature that most users don't need and we can't make the merge tag drop down support all scenarios and options so it defaults to the label for simplicity.

    Posted 12 years ago on Friday August 12, 2011 | Permalink
  7. dtgreen
    Member

    Fantastic! This has been stopping me from finishing off a project: cheers!

    Posted 11 years ago on Tuesday August 21, 2012 | Permalink

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