| View previous topic :: View next topic |
serkan Site Admin

Joined: 27 Oct 2006 Posts: 305
|
Posted: Fri Jul 06, 2007 3:24 pm Post subject: Pre-Populate Fields |
|
|
|
Hi,
Jotform is now able to pre-populate text boxes and text areas.
To pre-populate fields you should add some queries into the form URL
For example you have the questions named
First Name
and
Your Message
to populate them you should edit form URL like this
http://www.jotform.com/preview/713456590?FirstName=Write Your First Name&YourMessage=Message Here
Query should start with ? and there shouldn't be spaces or :, =, &, - in question names. and there should be & marks between populated fields. Question names are Case-Sensitive so be careful.
I hope this will be useful for you.
Cheers. _________________ = Serkan Yersen / JotForm Development Team = |
|
| Back to top |
|
|
jorlowitz
Joined: 12 Jun 2007 Posts: 17 Location: Vail, CO
|
Posted: Sat Jul 07, 2007 6:49 am Post subject: How will this work with dropdownforms? |
|
|
|
Hi,
Neat feature. It'd be cool to see it more integrated into the UI in the future.
My question is, how will this work with dropdown forms; some of mine, for example have field names repeated several times throughout the form. Will all common-named fields be filled and/or is there a way to differentiate them?
Thanks for all of your work,
Jake |
|
| Back to top |
|
|
serkan Site Admin

Joined: 27 Oct 2006 Posts: 305
|
Posted: Sat Jul 07, 2007 6:58 am Post subject: |
|
|
|
This Feature is still under development.
So don't expect too much for now.
It can't handle the dropdowns, checkboxes, radiobuttons and same named questions.
But it works quite well for textboxes and textareas
Thanks _________________ = Serkan Yersen / JotForm Development Team = |
|
| Back to top |
|
|
neilcaithness
Joined: 13 Sep 2007 Posts: 3
|
Posted: Thu Sep 13, 2007 7:59 am Post subject: Pre-populating fields |
|
|
|
Hi
Is there a way to use the pre-populating trick for forms hosted on my own site?
Thanks
Neil |
|
| Back to top |
|
|
neilcaithness
Joined: 13 Sep 2007 Posts: 3
|
Posted: Thu Sep 13, 2007 9:09 am Post subject: pre-populating a hidden fields |
|
|
|
Hi again
I'm guessing that it's not feasible to use the url mehod of pre-populating fields on a form hosted on my own site, but only via jotform.com. That's fine, but I have a related question.
Is there some way I can hide the pre-populated field given that I can't get at the html?
Thanks for your help.
Neil |
|
| Back to top |
|
|
emcqc
Joined: 20 Jun 2008 Posts: 6
|
|
| Back to top |
|
|
serkan Site Admin

Joined: 27 Oct 2006 Posts: 305
|
Posted: Fri Jul 04, 2008 6:41 am Post subject: |
|
|
|
I fixed the problem, please try it now. Thanks for reporting. _________________ = Serkan Yersen / JotForm Development Team = |
|
| Back to top |
|
|
MarkWinst
Joined: 30 Nov 2008 Posts: 7 Location: London, UK
|
Posted: Sun Nov 30, 2008 6:35 pm Post subject: Populate not working |
|
|
|
Hi - can you please help me to get populate working?
I am using the following URL to set Course field to "RYA Powerboat Intermediate", but it doesn't work:
http://www.jotform.com/preview/83345659722?Course=RYA Powerboat Intermediate
Thanks, Mark |
|
| Back to top |
|
|
serkan Site Admin

Joined: 27 Oct 2006 Posts: 305
|
Posted: Mon Dec 01, 2008 7:37 am Post subject: |
|
|
|
Hi, Use it as
http://www.jotform.com/form/83345659722?Coursecode=RYA
You can find your field names by checking the source code of your form
search for name=" tags. the format is q19_Courcecode
right side of the underscore is your question name use it for passing the values. _________________ = Serkan Yersen / JotForm Development Team = |
|
| Back to top |
|
|
MarkWinst
Joined: 30 Nov 2008 Posts: 7 Location: London, UK
|
Posted: Mon Dec 01, 2008 12:59 pm Post subject: |
|
|
|
Thanks Serkan, got populating working now.
What I would also like to do is embed the JofForm in a webpage as an iFrame, and populate some fields by passing the query string from the URL of the page holding the iFrame. Can you help me with this?
eg. pass ?Coursecode=RYA from the host page URL when calling the iFrame for the JofForm. I think this might need an onload Javascript handler to set the src/href of the iFrame?
Thanks, Mark |
|
| Back to top |
|
|
aytekin

Joined: 18 Feb 2006 Posts: 1719
|
Posted: Fri Dec 05, 2008 7:18 am Post subject: |
|
|
|
| I don't think there is any difference. You just need to include that variable on the iframe link. |
|
| Back to top |
|
|
beerhost
Joined: 29 Apr 2009 Posts: 1
|
Posted: Wed Apr 29, 2009 5:17 pm Post subject: |
|
|
|
| Brand new user here. Embedding in an iFrame is somewhat problematic. What I have done is taken the source form for my web pages; I then open in Dreamweaver and choose "initial value" to pre-populate any field. Sound much simpler and more elegant that having weirdly long URLs. |
|
| Back to top |
|
|
aytekin

Joined: 18 Feb 2006 Posts: 1719
|
Posted: Sun May 03, 2009 6:24 am Post subject: |
|
|
|
Yes, that's a good idea. You can certainly do that in DreamWeaver or any other HTML editor.
We will have support for "default fields" on the next version of JotForm which will be released before the end of 2009. |
|
| Back to top |
|
|
MarkWinst
Joined: 30 Nov 2008 Posts: 7 Location: London, UK
|
|
| Back to top |
|
|
MarkWinst
Joined: 30 Nov 2008 Posts: 7 Location: London, UK
|
Posted: Fri Jul 10, 2009 1:23 pm Post subject: |
|
|
|
| Update on pre-populating - I just tried it again and it worked the first time, but now does not work if you try a different field or different value. It seems like maybe there's some buffering or cacheing issue here? Mark |
|
| Back to top |
|
|
sek
Joined: 10 Aug 2009 Posts: 3
|
Posted: Tue Oct 20, 2009 8:28 am Post subject: Please help prepopulate JotForm |
|
|
|
Hi -
I tried to use the instructions, above, to learn how to prepopulate selected fields in my JotForm. I really need this feature but can't make it work. Can you please tell me what I am doing wrong?
The URL given for my "Test" form is:
http://www.jotform.com/form/92920658294
I wanted to try prepopulating the "Event" field so I looked in the source code and found this line:
<input type="text" size="30" name="q6_Event" class="text" value="" id="q6" maxlength="100" maxsize="100" />
So, I updated the URL to include the following, but the Event field does not get prepopulated:
http://www.jotform.com/form/92920658294?Event=TEST
Thank you for any help you can provide.
...Sue |
|
| Back to top |
|
|
serkan Site Admin

Joined: 27 Oct 2006 Posts: 305
|
Posted: Wed Oct 21, 2009 7:08 am Post subject: |
|
|
|
I believe, pre-populate problem is fixed now. Please test and let me know.
Thank you for reporting _________________ = Serkan Yersen / JotForm Development Team = |
|
| Back to top |
|
|
sek
Joined: 10 Aug 2009 Posts: 3
|
Posted: Sat Oct 24, 2009 12:45 am Post subject: |
|
|
|
.
Thank you very much for your help and quick response.
I was able to test and can now successfully pre-populate multiple fields in my jotforms.
This was a big help to me.
Many thanks!
...Sue |
|
| Back to top |
|
|
daktws
Joined: 04 Nov 2009 Posts: 1
|
Posted: Wed Nov 04, 2009 9:41 pm Post subject: How can I prepopulate pulldowns with my database info |
|
|
|
Instead of inputing in 5-10 items into your form building form, I want to create a pulldown form with a variable that pulls from my database.
In other words:
instead of:
option value="apple"
option value="orange"
option value="banana"
I want to do:
option value="#fruit#"
Is this possible? |
|
| Back to top |
|
|
aytekin

Joined: 18 Feb 2006 Posts: 1719
|
Posted: Thu Nov 05, 2009 3:34 pm Post subject: |
|
|
|
| It is possible. Put the form source code on your site into a .php file, and then add PHP code that creates options from your database. |
|
| Back to top |
|
|