Prepopulating fields: combine 2 jotform fields into value of one field on next jotform

  • Profile Image
    Asked on October 17, 2014 at 10:14 PM

    I am using the post url action to post information from one form into another form this works fine.

    I would like to be able to take it one step further and merge 2 fields into the 1 field of the second form. Is this possible a tried various combinations but I seems to only allow 1 set of data into the second form.

    for example.

    FORM 1

    Client 1 first name

    Client 1 last name

    FORM 2

    Client 2 first name

    Client 2 Last name

    Client 1 first last name

    Any ideas?

    I've tried the following configuration ...{firstName}{lastname}{firstName} {lastname}{firstName}={lastname}




  • Profile Image
    Answered on October 17, 2014 at 10:23 PM

    Hi Glen,

    Please check this discussion thread

    Were you trying to achieve something similar?

    The concatenation operator for PHP is  ('.') 

    I suggest you also check the PHP manual for proper syntax construction.

    Please inform us if you need further assistance.



  • Profile Image
    Answered on October 18, 2014 at 07:15 PM

    This is what I'm trying to achieve, but I don't want to put the merged fields into a database I want to merge them into another jotform field. 

    I tried the various PHP examples in the PHP Manual however the result is the first field is ignored and the second field is placed in the field of the second form I want.

    I'm not a programmer so the answer could be staring right at me and I wouldn't know it. I'm taking my direction from this discussion thread so you have a better idea where I am coming from.


    again i'm trying to merge first name and last name of form 1 into coclient of form 2


  • Profile Image
    Answered on October 19, 2014 at 05:59 AM

    Hi Glen.

    The way you first tried should be working for you, but depends on the actual fields that you have used and their names.

    I have created a quick sample for you. It consists of 2 jotforms:


    Now you should click on the first one and submit and it will take you to the second one filling out the fields as I understood that you wanted to. I have also included both Full Name widget and the regular textbox (we always suggest using the Full Name widget under quick tools).

    Now a link for the second jotform that I have added to the first jotforms Thank you page.[first]={fullName:first}&fullName1[last]={fullName:last}&txtFullName={fullName}&fullName2[first]={firstName}&fullName2[last]={lastName}&txtFullName2={firstName}{lastName}

    FullName1 and FullName2 are the Full Name Widgets and the firstName and lastName are text box widgets.

    Now there is one note about the Full Name widget. It has a lot of options that you can use to get the specific info that you need. I will go over how to use the first name field


    When we want to say to where we assign some value we will use [first],[last], etc; but when we want to get the value from where we get some value we use :first, :last, etc.

    Now as you can see at the end of the URL, I have added 2 fields one after another txtFullName2={firstName}{lastName} so this is how it can and should work, if all 3 parameters are correct, if I forgot one t (for example) in the txtFullName2 it would not allow me to receive parameters.



    I hope this helps and do let us know if you have any further questions.

    Best Regards,