- kucanskiposloviAsked 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?
- JotForm SupportWelvinAnswered 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.
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.
- kucanskiposloviAnswered on April 23, 2016 at 12:34 PM
Thanks, but I lose Coupon code if I use Collect donations instead of products with paypal
- JotForm SupportWelvinAnswered 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
Total for Product Items - Discount = Grand Total
- kucanskiposloviAnswered on April 23, 2016 at 01: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.
- JotForm SupportWelvinAnswered on April 23, 2016 at 01: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.
- kucanskiposloviAnswered on April 23, 2016 at 01:59 PM
Impossible? Can we get abajan on this? :D
- JotForm SupportWelvinAnswered on April 23, 2016 at 03: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.