In case of multiple forms of payment into the same form with the iFrame widget, where does the submit button go?

  • Profile Image
    isherclub
    Asked on November 25, 2016 at 04:38 PM

    For example, I have paypal and stripe.

    The paypal sub-form with the option to use the pay with paypal button directly, the stripe sub-form with the submit button

     

    Then there is a submit button into the form container.

     

    Which submit button should be removed and which one should be left to have a functional form that processes the purchase and record the data typed by the client?

     

    Thank you for your answer

    Regards
    Rosario

  • Profile Image
    BJoanna
    Answered on November 25, 2016 at 05:31 PM

    You should have both submit buttons. You basically have two different forms and each form has its own submit button. For example if main form has PayPal field and when submit button on main form is used only data that are entered on main form will be submitted. And if submit button on Stripe (embedded) form is used only data that are entered on embedded form will be submitted. 

    What I would suggest you to do is to create two identical forms (one with PayPal payment field and one with Stripe payment field) and embed Stripe form inside of PayPal form. Then at top of you PayPal form add radio button field and ask your users if they want to use PayPal or Stripe. Then set condition to hide Stripe (embedded) form if PayPal is selected. And create second condition to show Stripe embedded form and hide all other fields on PayPal form if Stripe option is selected. 

    https://www.jotform.com/help/196-Hide-or-Show-Multiple-Fields-at-Once 

    https://www.jotform.com/help/316-How-to-Show-or-Hide-Fields-Base-on-User-s-Answer 

    Inside of this guide you can find how to create a basic multiple payment form: 

    https://www.jotform.com/help/182-How-to-Create-a-Basic-Multiple-Payment-form 

    Hope this will help. let us know if you need further assistance.