- mtlscouts_committeeAsked on November 24, 2012 at 03:31 PM
I need to allow people to upload photos. Whith each (or multiple photos), I need to get some extra information such as their name, email, the year the photo was taken, as wel as a comment about the photo. If the person has photos from multiple years, they will need to make multiple submissions (so that they can indicate the year). After they submit the first photos, I want them to be redirected back to the same form, but have at least their name & email pre-populated using the data from their first submission.
I set a custom thankyou url to point back to the same form, and I enabled post data (thinking that it would automatically be picked up when the form was re-displayed after the first submission). Unfortunately, the data was not picked up and displayed when the user was redirected.
Is there a way to do this? It must be within Jotform. I will not be embedding the code on another site.
- fxrAnswered on November 24, 2012 at 04:52 PM
Its not possible to that using the actual JotForm URL as your Custom URL thankyou page.
It would be possible if you were embedding the form in a php enabled webpage, you could pick up the POST variables, then use those to generate a URL for the form embed code that would populate those fields from the first submission.
Are you embedding the form on a webpage?
The code would be simple enough and we could probably get it for you.
- mtlscouts_committeeAnswered on November 24, 2012 at 05:12 PM
Unfortunately I do not have access to the web page in order to embed the source. We will only have a link from our site to our JotForm form.
- JotForm SupportNeilVicenteAnswered on November 24, 2012 at 06:17 PM
You can prepopulate the form instead via a customized Thank You message or autoresponder. However, this solution will require an extra step from your user, i.e., clicking the prepopulated form link.
Check out this clone of your form:
For an easier implementation of this solution, simply copy the link below and then paste it onto your form's autoresponder and/or Thank You message (not custom URL).
Let me know if you run into any issues. Thanks!
- JotForm SupportNeilVicenteAnswered on November 24, 2012 at 06:19 PM
By the way, a downside to this solution is that the "Confirm Email Address" field cannot be prefilled. It wasn't designed to allow prepopulation because it is a validation feature.
- mtlscouts_committeeAnswered on November 24, 2012 at 07:25 PM
I tired it out on my thank you page, and it basically works as you indicated (the confirm email is not populated). I did run into a small issue, which might be a bug...
The primary email is populated, but the text is showing in grey; whereas the text that is pre-populated in my name fieds is black. The problem is that if you click to the left of the main email text box, the entire email field area gets a background colour (yellow). After that, if you click anywhere, the main email field gets blanked out, and you then get the error message about the fied being required...
Just for fun, after triggering the problem, I manually entered my email address, and then clicked on the side to see if it would happen again. This time, nothing happend. I seems like there is a small issue with the pre-population of the email field.
Actually, it looks like maybe the email address that is passed in is being placed in the hint example for the email field.
- JotForm SupportjonathanAnswered on November 24, 2012 at 08:16 PM
Thank you for the speedy update.
Please try removing the hint example value in the email fields, and do some test again.
Update us of the result when you can.
- mtlscouts_committeeAnswered on November 25, 2012 at 12:53 AM
OK, I did some further testing. The problem seems to be in Internet Explorer only. On my PC, I am running IE8 on WinXP (SP3). There is no problem on IPod touch (4th gen) running Chrome, no problem on BlackBerry Playbook running BB browser, and no problem on FireFox 12 (again on XP). I then tried on a Nokia Lumia 610 phone (with winPhone 7.5 & IE9 mobile version), and it also had the problem.
SO, definitely only a problem with IE. Removing the hint example value DOES eliminate the problem in IE.
So, for now, I will leave out the hint on the email field as it is not very important. However, this issue might surface again on other more important fields...
Perhaps your expert dev team can figure it out!
Thank you for your help, and for pointing me to a usable work around. It is much appreciated.