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

    When submitting an iFrame PayPal form, does it submit the parent form on completion?

    Asked by SmarterBetterBusiness on October 16, 2016 at 11:55 PM

    Hi,

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

    I want to give customers the option of adding an additional product to their checkout.

    I will create two PayPal forms - one with the basic product and one with the additional items added.

    Using conditional logic, I will show the form with the correct payment options and pricing in an iFrame and hide the incorrect one.

    When the user submits the iFrame form, will the outer/parent form be submitted as well?

    Thanks

    Patrick

    Page URL:
    https://form.jotform.co/62860111847859

    paypal form parent form on completion
  • Profile Image
    JotForm Support

    Answered by seth on October 17, 2016 at 07:48 AM

    Hello. I understand that you want your customer to be able to add additional products before checking out. You want to do this on an additional page (a new form) using Iframe. This theoretically possible, how ever I don't have both forms so I couldn't test your situation. But here is a guide to pass total values between forms:

    https://www.jotform.com/help/270-How-to-Pass-a-Form-s-Calculated-Value-to-another-Form-s-Payment-Total-Field

    I want to suggest to establish this only using one page. You can use checkboxes and radio boxes to define your products and calculate a total amount in two or three pages. You can show/hide different product selection elements and calculate a total amount which you can pass to PayPal. Here is the guide:

    https://www.jotform.com/help/275-How-to-Pass-a-Calculation-to-a-Payment-Field

    Let me briefly tell how to do it:

    - Create your fields: (use calculation widget for element 5)

    - Use conditions to show/hide next products, also you can use page breaks and back/next buttons and use conditions to update/calculate calculation:

    Note: You need to select options in show/hide condition properties as in the screenshot above to hide product 2 when there is no selection in radio button.

    I hope I can answer your question. If have questions in your mind please feel free to ask.

    Good Luck.