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.

Problem with radio button value

  1. charlesantoineidrac
    Member

    Hello,
    I have a problem about the radio button value, In fact, when I create my form, with radio button option, in property, choice, I fill "label and value" fields, but on my site, when I active the form, in my URL, I have just the label, and not the value.
    Have you a solution?
    Thanks.

    Posted 11 years ago on Wednesday April 10, 2013 | Permalink
  2. David Peralty

    Can you explain this more: "when I active the form, in my URL, I have just the label, and not the value."

    Posted 11 years ago on Wednesday April 10, 2013 | Permalink
  3. charlesantoineidrac
    Member

    Hello David,

    Sorry, my first question was not clear.

    I want to use a gravity form a way to show different pages. The user chooses the page title via radio button, he validates the form and he sees the correct page. So the form is only a radio button element, with the name of each page as label, and their post ID as value. I used a redirection option, in order to have the form redirecting to the correct page: http://www.votrepiscine.fr?p={Piscine:1}

    Unfortunaletly, the merge tag {Piscine:1} only takes the label of the radio button, not the value, thus I get redirected to this url:
    "http://www.votrepiscine.fr/?p=Hors+sol"

    instead of this one:
    "http://www.votrepiscine.fr/?p=1289"

    Is this a bit more clear or do you need other explanations ?
    Cheers,

    Posted 11 years ago on Tuesday April 16, 2013 | Permalink
  4. Try using this instead:

    http://www.votrepiscine.fr?p={Piscine:1:value}

    Posted 11 years ago on Tuesday April 16, 2013 | Permalink
  5. charlesantoineidrac
    Member

    Thanks for your answer Rob :) The form works now.

    Posted 11 years ago on Wednesday April 17, 2013 | Permalink