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.
Copying values to another form in wordpress.Asked by beatsahead on October 05, 2015 at 05:18 AM
I have this working fine if I use the jotform url, but getting something wrong in wordpress.
I am embedding the 2nd form in a page, I have put 2 scripts on, the first without the prepop info is working, the 2nd with the prepop is not showing up.
Having spent the best part of 3 days getting the date to copy over, ik would love it if I get get both parts of this for to work within my site.
1st page http://dj-hire-london.co.uk/test4-2/
2nd page http://dj-hire-london.co.uk/jotform-test-2nd-form/
prepopulation copy values copy data to form
I cannot submit your first form and this could be because of a script conflict. I would suggest re-embedding your form using our iframe method: https://www.jotform.com/help/148-Getting-the-Form-iFrame-Code.
Now, for the prepopulation, the way how you build the URL is not correct. You should build the URL and use it as the redirect URL (thank you URL) in the first form so the data will be automatically forwarded to the second form.
Let us help you with this. What date field from the first form are you trying to forward to the second form? Is that the Start or End date field?
If it's the start date, you should do it like this:
I changed the url while I was doing different testing, the form submits OK and the peak value is bein carried over, but not the date or all field.
I was also not able to submit your embedded form. Then I tested your standalone form:
http://www.jotformeu.com/form/52762376904361 and I was also not able to submit it.
Then I inspected conditions on your form and almost all of the conditions are set for fields that you have deleted from your form.
I would suggest you to delete all of those conditions for fields that are deleted, to see if than data will be passed to your other form when your first form is submitted.
Let us know if you need further assistance.
I have done that, the correct values can be seen in the url of the 2nd page, the date box has the date in it initially and then it resets to 'enter a valid date'
I did some test submission in your form and I was able to see what you are reporting. The event date was reset to the current date. Can you try to re-embed your second form using the iFrame embed code and see if it will work?
Do let us know if the issue still persists.
I've done that, the values are still showing in the url but now nothing is in the date fields
There seems to be some confusion here and please accept my apology for this. I did try to first test your form 1 which is embedded in 1st page. I am not able to submit the form. The submit button of your form does not respond. Please check the screenshot below:
I would suggest you to embed your first form with its iFrame embed code so that form can be submitted.
Now coming to the issue of your second form: Please be noted that if the form is embedded using its iFrame embed code, fields cannot be prepopulated from the webpage URL or parent web page. There are ways to solve this issue by embedding your form with its full source code but I am not sure if that could also create code conflict specifically in your webpage.
I would suggest you to first embed your second form with script embed code which you were using earlier and then we will take a look if there is any code conflict.
We will wait for your response.
We are glad to hear that resolved your issue with passing data from one form to another.
Considering that your last question is not related to subject of this thread I have moved it to separate thread and we will provide you an answer there shortly.