Can you embed multiple forms in a singe web page?

  • Profile Image
    Tony Leatham
    Asked on April 23, 2012 at 03:10 AM

    Hi

    I have an application where it would be useful to permit the definition of the number of forms, and then, depending on choices made by a user, display some of these forms in a single page.

    We can handle the server side code necessary to determine which forms to display, but I'm not certain what will happen if we try this? It would be better if we had just one submit button

    The forms would be embedded on our website, BTW

    Thanks

    Tony

  • Profile Image
    liyam
    Answered on April 23, 2012 at 08:03 AM

    Hello Tony,

    Thank you for your inquiry.

    There are a few possible options to embed multiple forms on a single page:

    1. Adding iframes - you can add more than 1 iframes in a single page without having it to conflict

    2. Adding 1 script embedded form and one iframe

    3. Adding 2 HTML full source codes but making sure that for every javascript source, you only have one of each in your page (if you need further clarification over this, please let us know).

  • Profile Image
    eggheadtony
    Answered on April 23, 2012 at 10:09 AM

    Hi

    I think I perhaps didn't make things clear. I have managed to create an HTML page with multiple forms embedded in it, simply using the embed option and copying and pasting the javascript code into the page. What I'm trying to do is have it so that there is only one submit button for all the forms on the page - I realised it is possible to remove the sbmit button from a form, and so created a form with just a submit I thought I just might at a stretch get away with using, but it doesn't submit the other two forms.

    Is there anyway round this?

    Thanks

    Tony

  • Profile Image
    jonathan
    Answered on April 23, 2012 at 09:05 PM

    Hi Tony,

    The only way to achieve this is by using all of the form's source code (How to download a source code of your Form guide). I am not use if this was what you did already when you created your own HTML page. Once you have the HTML page done, then just add to the submit button the functionality you want. Remember this is now a single web page, meaning, you can just call all the elements/fields of the page into your submit button functions.

    Hope this gives you the right idea. Thanks.