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.

Want to select radio buttons of a product based on buy now button selection

  1. carbgf
    Member

    I have a page with 3 versions of a product (diff prices) each with its own 'Buy now' button.
    I have only one Paypal Gravity order form with a PRODUCT field of 3 radio buttons i.e. 1 for each version. I want to auto select the correct radio button based on which 'Buy Now' Button is used. I have read how to dynamically populate a field but sadly do not know enough to succeed.

    In gravity form the PRODUCT field is set to be populated dynamically with a parameter name VERSION. I can see the 3 radio button choices are:
    <li class="gchoice_17_0">
    <li class="gchoice_17_1">
    <li class="gchoice_17_2">

    My Buy Now variables are: ver1, ver2 and ver3.

    If ver1 is select on the page then I want to select the 'gchoice_17_0' radio button

    1) What do I put in the Buy Now button link to add variable eg ver1
    2) Where & how in gravity form do I make the necessary connections

    Any help will be greatly appreciated.
    Carol

    Posted 11 years ago on Thursday February 14, 2013 | Permalink
  2. Can you share the URL to the pages (I think there are three separate product pages?) on your site where this form is visible? That will help us better understand what you need to do.

    Posted 11 years ago on Thursday February 14, 2013 | Permalink
  3. carbgf
    Member

    There is only one product page http://financialwalk.com/pricing
    Gravity forms page is: http://financialwalk.com/order-form-2
    Thanks
    Carol

    Posted 11 years ago on Thursday February 14, 2013 | Permalink
  4. On this page:
    http://financialwalk.com/pricing/

    The links that are attached to your orange buttons...

    [html]
    <a href="http://financialwalk.com/order-form-2">

    (be sure to remove the space you have between =" and http:// - that's not valid)

    ...need to contain a parameter like this:

    [html]
    <a href="http://financialwalk.com/order-form-2/?VERSION=ver1">
    <a href="http://financialwalk.com/order-form-2/?VERSION=ver2">
    <a href="http://financialwalk.com/order-form-2/?VERSION=ver3">

    If ver1, ver2 and ver3 are the values of those radio buttons, those links will direct the visitor to the page where your form is located and pre-select that radio button.

    Take a look at this URL and see how it pre-checks those boxes:
    http://gravity.chrishajer.com/family-reunion-rsvp/?st=Illinois,Indiana,Nevada,Alabama,Confusion

    It works the same with radio buttons.

    Let us know if you need more help with that.

    Posted 11 years ago on Friday February 15, 2013 | Permalink
  5. carbgf
    Member

    Thanks so much Chris. Have got this working. Confusion arose because I had price added to ea product field type label (so that the price shows as part of the description) and the default value field auto included all text. Once that was corrected all was fine.

    Posted 11 years ago on Tuesday February 19, 2013 | Permalink
  6. Sounds good. Thanks for the update.

    Posted 11 years ago on Tuesday February 19, 2013 | Permalink

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