How can I have a form that may or may not integrate with PayPal depending on user's choice?

  • Profile Image
    Asked on May 14, 2012 at 11:37 PM


    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?

    Thanks and regards,



  • Profile Image
    Answered 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.

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

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