User Guide

How to Pass Field Value to Another Field?

Last Update: August 16, 2017

If you're familiar with this workaround, well here's a very simple way to achieve this without writing any single line of code. 


From now on, you can now populate fields like Text Box, EmailText Area or even an Address field using the newly released feature called "Update/Calculate Field" condition.
 
Assuming you have already created a form with two fields e.g. Personal Email & Business Email. Now, you want to copy personal email field value and populate it to business email field whenever the personal email field is filled. Here's how:
 
1. Click Settings->Conditions in the form builder.
 
 
2. In the "Conditions" wizard, select "Update/Calculate Value".
 
 
3. On the next window, do the following.
 
a. Select a trigger point in the IF dropdown. This is usually the source field.
b. Select state "Is Filled"
c. Select "Copy a Field's value" in the DO dropdown. Optional: If you want to copy multiple fields, select "Copy Multiple Field values"
d. Select the FROM field (field where the value will be taken or copied)
e. Select the TO field (field where the value will be passed)
 
 
 
 
4. Click Save and preview your form!
 
See it in action: 
Demo 1 (Email and Address Fields) http://form.jotformpro.com/form/41964168571968?
 
If you have questions or if you need further clarification with any of the steps above, please leave a comment below.

26 Comments...

  • dynamicdance2015

    Do you know if it is possible to have the roster text output to a dual list box.

  • dynamicdance2015

    I need them to be able to then select which person from the roster to use in the next level of questioning

  • snjrose

    How can I do a break using this condition? If I am prepopulating a text box with several of the fields, I want to be able to do returns. Example, if the text box took the form of a letter. I would want it to be formatted like this:
    Dear {First Name},

  • snjrose

    Not sure why my last message was cut off. I want to be able to do line breaks in the condition. How do I acheive this? I've tried hitting return and using but neither worked when saved.

  • hbcmedia

    I'm brand new to jotforms and created my first form, an assessment today. I used calculation fields to determine the score of several categories at the end of the form. I would like to identify and display the top 4 categories based on the scores of about 15 calculation fields. I was trying to do this with the Conditions Wizard but cannot figure out a way to do it without custom javascript that isn't supported within the wizard.

    I was looking to use Math.max or an array. I was able to get the largest values with the nth function but I need to return both the values and the labels of the fields with the four largest values.

    Another thought I had was to create a report and email that to the individual or embed it in the form somehow. I'm not sure if advanced functions are possible in reports but I would assume so. I just haven't found it yet.

    Any help would be greatly appreciated!

  • mybackcracker

    Was there an answer for snjrose? I would like to also know how to break up text in the Update a form field value section. This way I can have one ext area contain all of the info on my report and not have so many lines/pages

  • Sarah

    This won't work with a billing address on a credit card form?

  • ambicay

    Is it possible to easily populate multiple fields from another field? For example, we ask for name in one field, and have several form tabs where we would like the name to be auto populated after it is collected on the first page.

  • ambicay

    This worked. And thank you for pointing out the field being populated being read-only. I was thinking about it so you read my mind.
    You guys are very responsive and a pleasure to work with.
    Thanks again...

  • Erica8629

    This is exactly what I was looking for however "Insert Field as Text instead of Numeric" does not exist in mine. Instead it shows "Add field to equation as text by default." Which when select or not selected all data is evaluated as a numeric.

  • wendyw

    this doesn't seem to be working for me. the field i'd like to have the copy shows a "0" instead of the text. i checked the box "Add field to equation as text by default". what am i doing wrong?

  • AScampO

    If I asked how many individuals attending? 1, 2 or 3? I don't want the form to ask for the 2 or 3 Names of individuals if they only chose 1, etc.

  • lauren.whiteaker

    is there a way to calculate a date based on another date entered in a different field? i.e. Date of Demo would produce a Call Date seven days prior based on the date entered for demo?

  • twhite1969

    Hi I can't seem to copy text from one field to another. Numbers will copy but text is copying a "0" to the destination field.

    I created an example. http://form.jotformpro.com/form/51935033118955

    Thanks for your help!

  • watermarktech

    Hi,

    Im trying to get three fields to populate on the click of a checkbox, name and telephone work but email populates a '2' instead. Can you help guys?

    The form is here:

    http://form.jotformeu.com/form/51902315662350

    Thanks in advance

  • watermarktech

    Don't worry this is now sorted.

  • EngPaired

    Can I copy a value from a field and paste it back into itself with additional data?
    Here's what I'm trying to accomplish - I have a hidden text area field that I'm trying to populate with details from multiple questions above on the form so that I can display it on the thank you page. I want to take the text that is already in the field and just add to it based on new conditions.
    I tried this in a form, but it looks like the condition is evaluating more times than I expected, so it is duplicating the information multiple times.

    Here's my simple example - http://form.jotform.us/form/52174707722152

    If you select 1 and then 5 I want it to say on the thank you page "You selected 1 You selected 5"

  • zrll2

    Hi, is it possible to change the value of radio select box based on another (previous) radio select result? Many thanks.

  • kmckenzie

    I run a camp and have a lot of people who make multiple submissions of the same form where most of the input they give me is the same, just a few fields are different. (they may have 3 children they want to send to the same camp, so the children's name, dob, and blood type is different, but the parents and emergency contact's info is the same. For legal purposes, I need them to submit a separate form with all the info, but is there an easy way they could select that their info be automatically copied to the second or third submissions so they can save time? Thanks.

  • mgregov

    I am looking to create on my form when I click on a box (is address information same as above) then the address information will be automatically populated into the following fields.
    Is this possible?

  • johnspring

    Is it possible to pass only first 2 letters of one field to another field?

  • shyamk

    Is it possible to copy check box field value to another question? The ones that I select

  • DPCREATE

    how do you copy multiple fields and paste to multiple fields i'm only offered 1 as copy destination

  • ilicialopez

    What's the best way to do this:

    Form has service drop down menu items for types of service provided at a clinic.
    Based on the type an increment of time will be added to a field titled units.
    How can I add conditions without having to add a rule to each item??

  • yourworldrecruitment

    I have noticed that if I create a condition on the NAME element, the title (mr, mrs, miss) does not copy to another part of the form where condition defined. Anyone else have this issue?

  • atanger

    Please show me the details for demo 2. I'm trying to pass a text field from one field to another based on the total score from the quiz. I can pass the name field, but not the text field - even if it's just one word.

Send Comment