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

    Embedding form to another form using iFrame Embed Widget and submitting to it

    Asked by FocusedMarketing on December 15, 2014 at 02:07 AM

    I want to embed a couple different payment forms within one main form because you can only use one within a main form. If I use the iframe embed option to embed a payment processing form within a main form, would they both submit when you click the main from submit button or would there need to be two submit buttons? 

     

    Also, I am having an issue with iframe widget displaying my form: http://form.jotformpro.com/form/43418919218966 if you click the second option for the first questions, and first option for the second question, you should see an iframe embed come up below, but it is just white space.

     

    Thanks!

    Page URL:
    http://form.jotformpro.com/form/43418919218966

    and iframe embed different Main Form thanks
  • Profile Image
    JotForm Support

    Answered by Welvin on December 15, 2014 at 06:27 AM

    Hi,

    Only one form will be submitted. If you click the main form's submit button, only the main form data will be submitted - and vice versa.

     

    Your problem about the iFrame widget has been moved here http://www.jotform.com/answers/475788. Will follow up later for our reply.

    Thanks

  • Profile Image

    Answered by FocusedMarketing on December 15, 2014 at 07:19 PM

    Is there anyway to build a script to submit the iframe form the same time you submit the main form? 

  • Profile Image

    Answered by raul on December 15, 2014 at 10:36 PM

    You can use JavaScript to submit the embedded form when the submit button of your parent form is clicked. Please check this page: http://stackoverflow.com/questions/13259843/submitting-formin-an-iframe-with-javascript 

    Hope this helps.

    Let us know if you have further questions.
    Thanks.

  • Profile Image

    Answered by raul on December 15, 2014 at 10:39 PM

    Forgot to mention that this script must be executed outside the form, so you'll need to add the parent form to a webpage using the full source code method.

  • Profile Image

    Answered by FocusedMarketing on December 15, 2014 at 11:25 PM

    Sounds good. That should still work. As long as I can do it and have "one" submit button. I think I can achieve what I want writing a simple script. Thanks!

  • Profile Image

    Answered by raul on December 16, 2014 at 12:44 AM

    You're welcome.

    If you need further assistance, feel free to open a new thread.
    Best Regards.