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.

How to pass URL parameter from radio buttons?

  1. background: I am trying to do a php conditional redirect based on URL parameters from gravityforms. The question I am asking is in this context.

    I have a scale from 1-7 on radio buttons. I am trying to get the gravityform to pass the URL parameter based on the selection. I checked "Pass Field Data Via Query String." I had this successfully working on a drop down menu
    response={dropdown:1}
    and the URL ended with "?response=yes"
    but I had to change the scale to radio buttons. as soon as I did this
    response={radiobuttons:1}
    the URL parameter just ended with "?response=" instead. No amount of trying to fix it helped.

    I also searched the forum and found this thread http://www.gravityhelp.com/forums/topic/passing-radio-button-values, but this solution from there didn't work either
    response={radio:1:value}

    I am guessing "radiobuttons" "buttons" or "radio" is not the right name to call it.
    How do I call the URL parameter in the confirmation section?

    Posted 12 years ago on Friday October 26, 2012 | Permalink
  2. David Peralty

    The merge tag you have to use is dependant upon what the name of the field is as well as the field number.

    I created two radio button fields on a form and named one Test and the other I left as Untitled and the merge tags that I got were:

    {Test:1}{Untitled:2}

    I found these by going into notifications and selecting the merge tag from the dropdown, but you can see these in the Confirmation dropdown as well.

    Posted 12 years ago on Friday October 26, 2012 | Permalink