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.

Populate Radio Buttons Fields

  1. Hello, im trying to Select Radio Button Option in a form using links. I read the forum help, and docs, but i can't achieve my objective.

    So here its is my problem:

    I have a form with 4 Radio Button's.

    I want link 1 to auto choose Radio Bt 1, links 2 Radio Bt2

    My steps:
    Links:
    http://pastiebin.com/?page=p&id=4ed8e6279ce99

    Radio Buttons Options:
    http://imgur.com/Fj8Om
    http://imgur.com/wt4gf

    In Post or Page:
    '[gravityform id=2 name=contacto title=false description=false ajax=true field_value='pacote_encomenda=1,2,3'] '

    Can you help me to populate the Radio Buttons.

    Thanks

    Posted 12 years ago on Friday December 2, 2011 | Permalink
  2. You aren't going about things the correct way.

    If you want the link to the page to pre-select the correct radio button then the link needs to pass the parameter and the value for that field in the query string.

    Instead of this:
    http://www.mydomain.com/site/?2

    It would be this:
    http://www.mydomain.com/site/?pacote_encomenda=2

    You have to pass the parameter name you created and then the value you want to set it to and that value has to match one of the available choices for that field.

    As for the shortcode, you wouldn't add field_value='pacote_encomenda=1,2,3' to the shortcode. What that is going to try and do is dynamically populate the field with the parameter pacote_encomenda with a value that equals "1,2,3" which doesn't exist.

    If you are populating the field dynamically via the link to the page, you don't need to do anything to the shortcode that displays the form.

    Instructions on how to dynamically populate a field can be found here:

    http://www.gravityhelp.com/documentation/page/Using_Dynamic_Population

    PLEASE NOTE you don't use all of the methods. You are either going to use the query string method, the shortcode method or the function method. You aren't going to use a combination of these like you are trying to do.

    Posted 12 years ago on Friday December 2, 2011 | Permalink
  3. Thanks Carl, Everything its working great

    Posted 12 years ago on Monday December 5, 2011 | Permalink
  4. Thank you for the update.

    Posted 12 years ago on Monday December 5, 2011 | Permalink

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