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.
How can I post data of my basic form, when submit bottom is in iframe include via HTML fieldAsked by fzornow on May 30, 2013 at 11:08 AM
I try to integrated a multiple payment system with various possibilities of subscriptions.Getting the Form iFrame Code
Therefore I include iFrames in my basic form using the condtion wizzard like posted in
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?
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.
You mean this method, right?
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
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!
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?
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.
If you analyze this form, there are 3 forms involved:
The main form - http://www.jotform.me/form/22562702027446
The paypal form - https://secure.jotform.me/form/22562705312446
The authorize.net form - https://secure.jotform.me/form/22562325515449
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 auth.net). 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.
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
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.
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
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: http://www.jotform.me/form/22562702027446. 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!
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