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.
Pre-populate fields in an IframeAsked by markashton on January 25, 2011 at 08:41 AM
I cannot get values to pass through a url that reside in an Iframe.
This iframe of the same form does not:
Can anyone help on this I'd be most grateful
1. Change the page from ".htm" to ".php"
http://www.workflows.co.uk/temp/prepop.php?firstName=Dave2. Add the variables to the form URL on the page like this:?http://www.workflows.co.uk/temp/prepop.php?firstName=<?=$_GET['firstName']?>&lastName=<?=$_GET['lastName']?>&
Couple of problems:
1) Cannot get this to work with my iframes. Is the syntax correct? Why the question mark at beginning? Is there an example I could see to reverse engineer.
2) I have a lot of .htm files out in the world and am a little reluctant to have to change them all for clients et al. I use another provider (sometimes) whereby this functionality does work with .htm files.
So my question is: Is it possible with jotform to pass values through a url to .htm files?
Many thanks, Regards Mark
1) That's how you send variables from URL. This is the form:
2) Unfortunately, you cannot use PHP code on .htm files. So, this is not possible on those files.
I am doing somehting similar and would like to know if it is possible to:
Hit a page with parameters in the URL I.E., ?name=whatever&company=whocares
and have an iframed form from a different site get populated with the date THEN auto submit?
There is no user interaction on this form, it is just a backend sysytem that hits a post back page after a phone call happns and passes that data to the page. The issue is the form is on a third party system and I have no control of the code, just the form creation.
I really dont think this functionality is possible, but if you want to pursue it, please open a new thread and detail exactly what you are trying to achieve and we can certainly have a think about what your options are.
It is possible - but not through Jotform. However, there is a solution through jotform. Instead of using an Iframe ... use the embed function with script. You will then be able to reproduce exactly the same scenario.
Look here: link removed
Iframe ... check the source and you will see that I have just embedded the script.
Voilla ;) (Send me the cash in a brown bag ;)
Are these ideas still valid? they are a few years old and the most recent post doesn't seem to work anymore.
Hi, can you please clarify which one does not work?
The pre-populate fields still works. You may want to review this guide: Prepopulating-the-fields-to-your-JotForm-via-URL-parameters
It would be better also if you could create your topic (use this), so we can easily focus on your inquiry.
Hi, can someone help me out this?
I'm iframing this site in my own parent page, how can i have the fields in the iframe pre-populated?
It's explained on this guide: Prepopulating the fields to your JotForm via URL parameters
So if you are using iframe embed code, you can append the URL parameters on the JotForm URL. Example:
<iframe allowtransparency="true" src="//form.jotformpro.com/form/30771202081947?fullName3[first]=John&fullName3[last]=Doe" frameborder="0" style="width:100%; height:562px; border:none;" scrolling="no"></iframe>
Let us know if you have further questions. Thanks!