How can I post data of my basic form, when submit bottom is in iframe include via HTML field

  • Profile Image
    Asked on May 30, 2013 at 11:08 AM



    I try to integrated a multiple payment system with various possibilities of subscriptions.
    Therefore I include iFrames in my basic form using the condtion wizzard like posted in 

    Getting the Form iFrame Code


    But now, the submit button works in the iFrame and I can't 
    post data using the thank-you-page url to store them in my database.

    Is there a solution for that?


  • Profile Image
    Answered on May 30, 2013 at 02:02 PM


    I think that doesn't affect the ability to post data to your custom thank you page. We are just using another method of embedding the form.

    You will just enabled "Send Post Data". Create your Custom Thank You Page/URL and set it to the form.

    Let us know your form URL so we can check your settings and possibly advice you for any changes to fix such.


  • Profile Image
    Answered on May 30, 2013 at 02:02 PM
  • Profile Image
    Answered on May 30, 2013 at 04:22 PM

    Hi Welvin,

    in mean that method. It works good, when I iinclude a submit buttion in my basic form.
    It starts the php script and saves all data in the sql database.

    I can start the same url-php from submitt buttin embbede in the iframe. But this just appends
    data from the iFrame but NOT the data of the basic form. But I need both in the php script
    or at least i need to have a relation between both (e.g. an id).

    Thanks for your help 

  • Profile Image
    Answered on May 30, 2013 at 09:01 PM


    I think that's not possible. If the submit button is embedded as iframe within a Free Text HTML field it will only send the data of the form associated to it not the main form where it's embedded. The best way to achieve that is to combine the forms into a single form. Also, if you are using two diffent form from JotForm, they both have unique action URL so it's quite impossible to submit them both.

    Let us know your thoughts. Thanks!

  • Profile Image
    Answered on May 31, 2013 at 04:20 PM

    Hi Elton, 

    thanks. I can not use a single form, because I want want to use a multiple payment system.

    Do you have an solution for that?


  • Profile Image
    Answered on May 31, 2013 at 07:28 PM


    Hi, what my colleague EltonCris is trying to say is -- you cannot Send Post Data for multiple forms using only a single submit in the Main form.

    For example, on this guide How-to-Create-a-Basic-Multiple-Payment-form , on the sample form, there are 2 payment methods. 

    If you analyze this form, there are 3 forms involved:

    The main form -

    The paypal form -

    The form -

    If you like to use Send Post Data on a multiple payment form simllar the demo form on the guide, you can do this by enabling the Send Post Data on the 2 payment form -- Paypal and Authorize.Net form.

    In the resulting database it will be 2 distinct submissions (paypal and You can just do the merging of data (in case you need to) within the backend (in your database).

    I hope this help. Please inform us if you have further question.



  • Profile Image
    Answered on June 01, 2013 at 03:29 AM

    Hi Jonathan,

    thanks for your help.
    My problem is:
    - if several customers order the same combination of products (as a sucscription in the payment form), and the details of the products are described in  the main form, i don't know the relation between those. 

    Is there a possibility to integrate one unique id within the main form and teh payment form. This will help to see which main form belongs to which payment form in the database.

    This will help to merge the data


  • Profile Image
    Answered on June 01, 2013 at 10:12 AM


    Yes you can generate an unique id on your main form. But I haven't understood your requirement. Request you to please elaborate your requirement so that we can provide you a solution.



  • Profile Image
    Answered on June 05, 2013 at 04:31 PM

    Hi Sidharth

    my problem is, that i want the customer to enter data to the main form and select some services, which should be charged monthly. But there is no way ( I disussed that in the forum with jonathan and others),  that i could make a selection of vatious subsrcptions in ONE payment system. 

    Thereform of made payment forms for all combinations of of services, we want to offer. 
    Then I inserted an HTML field for every form, and made a selection with using the condition wizzard based on the chekcmarks, the customer set.

    To give the possibillity to download a demo, I store everything in a sql database using your POST functionality which starts a php script. I need to give the customer the chance to see this demo version before he orders the service with e.g. paypal.

    Up to now, everything is perfect.

    But the following situation can happen. 
    Two costumers want to order the same services with different data (company names, adresses, etc).
    I store everything in the sql database and dropbox and wherever you like.  
    But the first one orders, the second one doesn't:
    Now i need to distinguish be the first and the second one. I can't do that on the database, because both wanted to order the same service.

    Therefore I need a relation between what has been entered in the main form and what has been ordered.

    Otherwise I don't know with order is valid and which one is still open. 

    I hope, I described it in a way, that you see the point in my problem.

    I would appreciate your help very much, because i spend a lot of hour to generate the concept and various forms.
    But I stuck and see no way to finish my project.

    Thanks a lot and regards



  • Profile Image
    Answered on June 05, 2013 at 07:40 PM


    Thanks for the clarification.

    Sorry but it is not possible to create a Unique ID that would serve both main form and the embedded form. I'm afraid it would only work to the form which has the submit button in it. The only idea I could suggest to you is to include all the main form data to the embedded sub-forms just like what it seen on this demo: Each payment method has its own main fields. This way, when the form is submitted, let says Paypal Form, all data including the main fields e.g. name, email will be captured and stored in the form submissions and email notification.

    Or, another suggestion would be to redirect your main form to each sub form depending on their choices in the main form. You can do that with "Change Thank you URL after Submission".

    Let us know if you have further questions. Thank you!

  • Profile Image
    Answered on July 03, 2013 at 09:34 PM

    We are very proud to announce that our amazing team of developers have released Jotform Webhooks,  this feature would replace Send Post Data + Custom URL Thank You Page workaround in order to help you transfer forms data to your own database using a script code

    Please find out more about it here