Copying values to another form in wordpress.

  • beatsahead
    Asked on October 5, 2015 at 5: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/

  • Welvin Support Team Lead
    Replied on October 5, 2015 at 9:51 AM

    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:

    http://dj-hire-london.co.uk/jotform-test-2nd-form/?eventDate[day]={musicStart:day}&eventDate[month]={musicStart:month}&eventDate[year]={musicStart:year}

    Copying values to another form in wordpress Screenshot 20

    Thanks

  • beatsahead
    Replied on October 5, 2015 at 10:49 AM

    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.

  • BJoanna
    Replied on October 5, 2015 at 1:34 PM

    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.

    Copying values to another form in wordpress Screenshot 20

    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. 

  • beatsahead
    Replied on October 6, 2015 at 5:11 AM

    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'

  • Chriistian Jotform Support
    Replied on October 6, 2015 at 6:40 AM

    Hi,

     

    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.
    Regards.

  • beatsahead
    Replied on October 6, 2015 at 6:50 AM

    I've done that, the values are still showing in the url but now nothing is in the date fields

  • Ashwin JotForm Support
    Replied on October 6, 2015 at 8:49 AM

    Hello beatsahead,

    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:

     

     Copying values to another form in wordpress Screenshot 20

     

    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.

    Thank you!

  • beatsahead
    Replied on October 6, 2015 at 9:12 AM

    I've embedded the 2nd form with the plugin on WordPress and now it all appears to be copying the values perfectly.

    I do have another query, it it possible to change the date from 15/102015 to 15 Oct 2015
  • BJoanna
    Replied on October 6, 2015 at 11:21 AM

    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. 

    http://www.jotform.com/answers/677177