How to create "Piping" / pass values of one field to another?

  • Profile Image
    tice2001
    Asked on June 26, 2015 at 01:58 PM

    Try as I may, I simply could not find any documentation about something (in other online form creation websites) called piping. Something whereby a person's response (his or her name, for instance) is used to prepopulate a different field.

     

    Rough Example:

    What is your first name? ______________ (pipe 1)

    Hi [pipe 1]! What country do you live in? __________________

     

    If the user types "John", that's "piped" into the second line and he reads Hi John! Let's get started.

     

     

  • Profile Image
    Ben
    Answered on June 26, 2015 at 03:18 PM

    Interesting name, I did not know that it was called "piping", but it is possible with JotForm as well :)

    Basically your form fields have their tags and IDs. IDs are used for CSS, but tags are used for all other things, for example in conditions, emails, on thank you page and form calculations.

    We can however use them in another field like the Text field, so we get the same effect as above.

    Now to get to know one field's tag I suggest taking a look at the following guide: How to find Field IDs & Names

    Now the only thing that I should point out is that you can do this with Text field only (from Form Tools)

    You can not do that by adding the tags to the fields label (text above the question). So "Hi [pipe 1]! What country do you live in?" would require to have that text within Text element completely, or to have "Hi [pipe1]" in a Text element and have the rest in the label of the field.

    Do let us know if you have any further questions in regards to this and we would be happy to answer them.

  • Profile Image
    Ben
    Answered on June 26, 2015 at 03:20 PM

    Oh I see that I forgot to include the link to the sample form that I have made. This is the link to it: http://form.jotformpro.com/form/51765828024964

    Please feel free to check it out and clone it to your account if you wish for a closer inspection. You can do that by following the steps here: How to Clone an Existing Form from a URL

  • Profile Image
    tice2001
    Answered on June 26, 2015 at 03:33 PM
    Thank you very much!
    ...
  • Profile Image
    sjk03060
    Answered on October 23, 2015 at 12:19 PM

    But  you don't show how to do this. I find it very frustrating that a tool as feature-rich as Jotform does not include this very basic function. Virtually every form generator out there, including Survey Monkey provides this very, very basic. capability. 

  • Profile Image
    Ben
    Answered on October 23, 2015 at 01:48 PM

    You are right. Seems that I did not include as much details as I could, but I am happy to fix that and will not move your thread in order to help anyone else that finds this thread.

    To do it, you need few things:

    1. Text Field element that will allow us to show the pipes

    2. field that we will pipe value from

    3. the name of that same field

    4. a bit of time.

    Adding fields is simple and getting the field name is just the same - which is explained here: How to find Field IDs & Names

    Now we have the name it will be something like {yourName}

    We simply add that same text - {yourName} - to the Text element and that is it.

    Now these are some good guides to check in regards to this:

    How to Strip Headers from Postal Addresses in Email Alerts

    How to Strip Payment Labels and Separate Payment Info on Email Alerts

    and as mentioned on your thread: http://www.jotform.com/answers/688616 by a fellow form builder, this thread shows a bit more details about stripping name details: http://www.jotform.com/answers/18852

    Now since this is old thread, I would like to ask you to post any questions that you might have on your own thread here: http://www.jotform.com/answers/688616 and we would be happy to assist.