How can I automatically select a Paypal product item when Image Radio button option is selected?

  • kucanskiposlovi
    Asked on April 23, 2016 at 10:44 AM

    Hi,

     

    I have an image radio button widget on top of my form. I would like to poopulate paypal checkboxes when user clicks on one of the radio buttons.

    Clicking 3 mjeseca on the radio button widget should also check the 3 mjeseca checkbox on Paypal below. Is that possible?

     

    thanks!

  • Welvin Support Team Lead
    Replied on April 23, 2016 at 12:23 PM

    Unfortunately, it's not possible. A workaround would be to setup the product items using s Check Box field. To update this checkbox field, you need to add a condition in the form.

    https://www.jotform.com/help/268-How-to-Insert-Text-or-Mathematical-Caculation-into-a-field-using-a-Condition 

    Here's an example form, https://form.jotform.com/61134936062957.

    Here's the condition: 

    How can I automatically select a Paypal product item when Image Radio button option is selected? Image 1 Screenshot 20

     

    You can assign a calculation value in each of the checkbox options. Here's how https://www.jotform.com/help/301-How-to-Assign-Calculation-Value

    You can then calculate the total using the calculation widget https://www.jotform.com/help/259-How-to-perform-calculation-in-the-form.

    You can pass the total from the calculation widget to the Paypal field, here's how https://www.jotform.com/help/275-How-to-pass-a-calculation-to-a-payment-field.

    Let us know if you need help on this.

  • kucanskiposlovi
    Replied on April 23, 2016 at 12:34 PM

    Thanks, but I lose Coupon code if I use Collect donations instead of products with paypal

  • Welvin Support Team Lead
    Replied on April 23, 2016 at 12:58 PM

    Well, you can add a textbox field that would serve you as your coupon codes box. You can then setup another condition to subtract an amount when the textbox is filled with the correct codes. Please check my form again for the example.

    Coupon is ABC

    The condition:

    How can I automatically select a Paypal product item when Image Radio button option is selected? Image 1 Screenshot 20

    Total for Product Items - Discount = Grand Total

  • kucanskiposlovi
    Replied on April 23, 2016 at 1:41 PM

    Thanks, you're a rockstar. But I need coupon codes limit that paypal provides. Also I need to change the codes on a monthly basis. And I'm using source code that is heavily edited to present the form on my site. So this is not an option unfortunately.

  • Welvin Support Team Lead
    Replied on April 23, 2016 at 1:49 PM

    I'm sorry. If that's the case, why not use the Paypal field directly? I'm afraid that there's no other workaround for this. You may consider revamping the form and utilize the Paypal field instead of the widget. Or, just put a note that would tell the users to check the same option in Paypal after selecting it from the widget. 

  • kucanskiposlovi
    Replied on April 23, 2016 at 1:59 PM

    Impossible? Can we get abajan on this? :D

    http://www.jotform.com/answers/110686-Conditional-logic-with-multiple-products-in-PayPal

  • Welvin Support Team Lead
    Replied on April 23, 2016 at 3:16 PM

    The widget is still loaded as an iframe in the source codes so doing the same workaround given by Abajan is not possible. There is no way to add Class or ID or Name in the widget which is important when adding custom scripts to specific option(s). But let me reach out my colleagues on this matter. I'll let you know.