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.


  • Profile Image

    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

    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!

    Page URL:
    https://form.jotformeu.com/61132729699365

    populate checkbox conditional logic
  • Profile Image
    JotForm Support

    Answered by Welvin 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: 

     

    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.

  • Profile Image

    Answered by kucanskiposlovi on April 23, 2016 at 12:34 PM

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

  • Profile Image
    JotForm Support

    Answered by Welvin 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:

    Total for Product Items - Discount = Grand Total

  • Profile Image

    Answered by kucanskiposlovi 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.

  • Profile Image
    JotForm Support

    Answered by Welvin 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. 

  • Profile Image

    Answered by kucanskiposlovi on April 23, 2016 at 01:59 PM

    Impossible? Can we get abajan on this? :D

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

  • Profile Image
    JotForm Support

    Answered by Welvin 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.