What is JotForm?
JotForm is a free online form builder which helps you create online forms without writing a single line of code. No sign-up required.
At JotForm, we want to make sure that you’re getting the online form builder help that you need. Our friendly customer support team is available 24/7.
We believe that if one user has a question, there could be more users who may have the same question. This is why many of our support forum threads are public and available to be searched and viewed. If you’d like help immediately, feel free to search for a similar question, or submit your question or concern.
How can I automatically select a Paypal product item when Image Radio button option is selected?Asked by kucanskiposlovi on April 23, 2016 at 10:44 AM
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?
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.
Here's an example form, https://form.jotform.com/61134936062957.
Here's the condition:
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.
Thanks, but I lose Coupon code if I use Collect donations instead of products with paypal
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
Total for Product Items - Discount = Grand Total
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.
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.
Impossible? Can we get abajan on this? :D
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.