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 have a form that may or may not integrate with PayPal depending on user's choice?

    Asked by d4k on May 14, 2012 at 11:37 PM

    Hi 

    Through our website customers can register (pay upfront) or pre-register (billed/pay later) for our seminars and courses.  Until now I have been using two forms one that integrates to PayPal (register) and one that doesn't (pre-register).  For the sake of ease maintenance, am trying to combine both forms in one.  

    The basic customer info is the same for both methods but when it comes to payment the customer has now a choice to pay now or later. Depending on the selection I am hidding the PayPal component so that only the personal info is captured but if 'Pay Now' is chosen than PayPal chechout should appear.

    I have implemented the above but am getting PayPal checkout regardless the options chosen.

    What would be the best option to achieve that?

    https://secure.jotform.co/form/21343537737860

    Thanks and regards,

     

    d4k

    Page URL:
    https://secure.jotform.co/form/21343537737860

  • Profile Image
    JotForm Support

    Answered by mliz on May 15, 2012 at 02:33 AM

    Single Paypal product is not displayed in the form and will still redirect the form to Paypal upon checkout since it is not covered by the show/hide field conditions. An alternative solution for this is to add a 2nd product with $0 or free amount just so that the show/hide conditions is applied to the Paypal field. Using the Inject Custom CSS the 2nd product can be hidden from the form.

    1. Create a 2nd product with a $0/free amount.
    2. Find the 2nd product's id or tag in the code,



    3. Add the following CSS code in the form to hide the 2nd product. In my sample form the field id for the 2nd product is input_31_1007

    input#input_31_1007 { display: none !important;}
    input#input_31_1007 + label { display: none !important;}

    I have cloned your form and implemented this work around, you may import this to your account for convenience.

    http://form.jotform.me/form/21350930595453

    Let us know if there is anything else we can help you with.

  • Profile Image

    Answered by d4k on May 15, 2012 at 02:40 AM
    Thank you, will have a go at it and let you know. Am sure will work ;-)
    Cheers