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.

Radio Buttons

  1. R Chilton
    Member

    I would like to add two radio buttons - choice A and Choice B with a submit button. If they choose choice A one pdf form is downloaded - if they choose Choice B a different pdf form is dowloaded. I know how to add radio buttons but I'm lost after that.

    Thanks

    Posted 9 years ago on Wednesday May 30, 2012 | Permalink
  2. You can do this using our conditional shortcode in either the form confirmation or the email notification. See documentation here: http://www.gravityhelp.com/documentation/page/Shortcodes#Conditional_Shortcode

    Posted 9 years ago on Wednesday May 30, 2012 | Permalink
  3. R Chilton
    Member

    I've looked at the link, but I don't have much experience with conditional logic some I'm still unclear on how I would integrate the radio buttons A and B choice with conditional shortcode.

    Posted 9 years ago on Wednesday May 30, 2012 | Permalink
  4. You don't need conditional logic. On your form settings, in the form confirmation area. You would build your shortcodes with the merge tag drop down.

    [gravityforms action="conditional" merge_tag="{Radio Field}" condition="is" value="Product One"]
    Place the link to your PDF here.
    [/gravityforms]
    [gravityforms action="conditional" merge_tag="{Radio Field}" condition="is" value="Product Two"]
    Place the link to your other PDF here.
    [/gravityforms]

    This is a simple example, the merge tag you will find via the drop down and the value you will get from your radio button options.

    Posted 9 years ago on Wednesday May 30, 2012 | Permalink
  5. R Chilton
    Member

    Not sure why but I'm still having an issue with this. In the drop down menu there is no radio field option. I put the following shortcode in the "form settings" under confirmation in the text area:

    [gravityforms action="conditional" merge_tag="{Radio Field}" condition="is" value="Buyer"]
    http://www.918results.com/wp-content/themes/custom/images/3reasonsbuyers.pdf
    [/gravityforms]
    [gravityforms action="conditional" merge_tag="{Radio Field}" condition="is" value="Seller"]
    http://www.918results.com/wp-content/themes/custom/images/3reasonssellers.pdf
    [/gravityforms]

    The form appears to function correctly but when you press the download button nothing happens - you don't get the appropriate pdf. Here is a link: 918results.com

    Thanks

    Posted 9 years ago on Thursday May 31, 2012 | Permalink
  6. Can you send me a WP Admin login to rob@rocketgenius.com and reference this post in your email.

    Posted 9 years ago on Thursday May 31, 2012 | Permalink
  7. Resolved via email.

    Posted 9 years ago on Thursday May 31, 2012 | Permalink

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