JotForm
my forms
tutorials
f.a.q
forum
blog
premium
Log in to check your private messages
Pre-Populate Fields

 
Post new topic   Reply to topic    JotForm Forum Index // General Discussion
View previous topic :: View next topic  
Author Message
serkan
Site Admin


Joined: 27 Oct 2006
Posts: 305

PostPosted: Fri Jul 06, 2007 3:24 pm    Post subject: Pre-Populate Fields Reply with quote
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
View user's profile Send private message Visit poster's website
jorlowitz



Joined: 12 Jun 2007
Posts: 17
Location: Vail, CO

PostPosted: Sat Jul 07, 2007 6:49 am    Post subject: How will this work with dropdownforms? Reply with quote
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
View user's profile Send private message Send e-mail Visit poster's website
serkan
Site Admin


Joined: 27 Oct 2006
Posts: 305

PostPosted: Sat Jul 07, 2007 6:58 am    Post subject: Reply with quote
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
View user's profile Send private message Visit poster's website
neilcaithness



Joined: 13 Sep 2007
Posts: 3

PostPosted: Thu Sep 13, 2007 7:59 am    Post subject: Pre-populating fields Reply with quote
Hi

Is there a way to use the pre-populating trick for forms hosted on my own site?

Thanks
Neil
Back to top
View user's profile Send private message
neilcaithness



Joined: 13 Sep 2007
Posts: 3

PostPosted: Thu Sep 13, 2007 9:09 am    Post subject: pre-populating a hidden fields Reply with quote
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
View user's profile Send private message
emcqc



Joined: 20 Jun 2008
Posts: 6

PostPosted: Thu Jul 03, 2008 2:38 pm    Post subject: Reply with quote
I have tried to make this work but can't seem to work it out.

I link to this URL:
www.jotform.com/form/81713153322?vtn2=123

But the field (which is a text area called vtn2) doesn't get any data in it.

I also tried it on a text box:
www.jotform.com/form/81713153322?vtn=123

But the text box called vtn doesn't get any data in it.

I even tried filling both at once:
www.jotform.com/form/81713153322?vtn=123&vtn2=123

and neither is filled.

What am I doing wrong?
Back to top
View user's profile Send private message
serkan
Site Admin


Joined: 27 Oct 2006
Posts: 305

PostPosted: Fri Jul 04, 2008 6:41 am    Post subject: Reply with quote
I fixed the problem, please try it now. Thanks for reporting.
_________________
= Serkan Yersen / JotForm Development Team =
Back to top
View user's profile Send private message Visit poster's website
MarkWinst



Joined: 30 Nov 2008
Posts: 7
Location: London, UK

PostPosted: Sun Nov 30, 2008 6:35 pm    Post subject: Populate not working Reply with quote
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
View user's profile Send private message
serkan
Site Admin


Joined: 27 Oct 2006
Posts: 305

PostPosted: Mon Dec 01, 2008 7:37 am    Post subject: Reply with quote
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
View user's profile Send private message Visit poster's website
MarkWinst



Joined: 30 Nov 2008
Posts: 7
Location: London, UK

PostPosted: Mon Dec 01, 2008 12:59 pm    Post subject: Reply with quote
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
View user's profile Send private message
aytekin



Joined: 18 Feb 2006
Posts: 1719

PostPosted: Fri Dec 05, 2008 7:18 am    Post subject: Reply with quote
I don't think there is any difference. You just need to include that variable on the iframe link.
Back to top
View user's profile Send private message Visit poster's website
beerhost



Joined: 29 Apr 2009
Posts: 1

PostPosted: Wed Apr 29, 2009 5:17 pm    Post subject: Reply with quote
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
View user's profile Send private message
aytekin



Joined: 18 Feb 2006
Posts: 1719

PostPosted: Sun May 03, 2009 6:24 am    Post subject: Reply with quote
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
View user's profile Send private message Visit poster's website
MarkWinst



Joined: 30 Nov 2008
Posts: 7
Location: London, UK

PostPosted: Fri Jul 10, 2009 11:50 am    Post subject: Reply with quote
Pre-populating is not working at the moment. eg. http://www.jotform.com/form/83345659722?Coursename=test does not pre-populate the field Coursename with the value "test". This used to work before. Can you help me? Thanks, Mark
Back to top
View user's profile Send private message
MarkWinst



Joined: 30 Nov 2008
Posts: 7
Location: London, UK

PostPosted: Fri Jul 10, 2009 1:23 pm    Post subject: Reply with quote
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
View user's profile Send private message
sek



Joined: 10 Aug 2009
Posts: 3

PostPosted: Tue Oct 20, 2009 8:28 am    Post subject: Please help prepopulate JotForm Reply with quote
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
View user's profile Send private message
serkan
Site Admin


Joined: 27 Oct 2006
Posts: 305

PostPosted: Wed Oct 21, 2009 7:08 am    Post subject: Reply with quote
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
View user's profile Send private message Visit poster's website
sek



Joined: 10 Aug 2009
Posts: 3

PostPosted: Sat Oct 24, 2009 12:45 am    Post subject: Reply with quote
.
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
View user's profile Send private message
daktws



Joined: 04 Nov 2009
Posts: 1

PostPosted: Wed Nov 04, 2009 9:41 pm    Post subject: How can I prepopulate pulldowns with my database info Reply with quote
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
View user's profile Send private message
aytekin



Joined: 18 Feb 2006
Posts: 1719

PostPosted: Thu Nov 05, 2009 3:34 pm    Post subject: Reply with quote
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
View user's profile Send private message Visit poster's website
Post new topic   Reply to topic    JotForm Forum Index // General Discussion All times are GMT
Page 1 of 1

 
Contact Us · Terms of Use · Privacy Policy · Licensing Solutions Copyright © 2009 Interlogy LLC. All rights reserved.