How to Pass Field Value to Another Field?

Last Update: August 21, 2016

If you're familiar with this workaround, we'll 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 "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.


23 Comments...


   
dynamicdance2015 (October 20, 2014 at 08:29 AM)

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

View Answer


   
dynamicdance2015 (October 20, 2014 at 08:44 AM)

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

View Answer


   
snjrose (November 22, 2014 at 01:26 AM)

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},

View Answer


   
snjrose (November 22, 2014 at 01:27 AM)

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.

View Answer


   
hbcmedia (December 16, 2014 at 09:30 PM)

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!

View Answer


   
mybackcracker (January 20, 2015 at 11:32 PM)

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

View Answer


   
Sarah (April 09, 2015 at 09:44 PM)

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

View Answer


   
ambicay (April 23, 2015 at 01:58 PM)

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.

View Answer


   
ambicay (April 23, 2015 at 03:48 PM)

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 (May 04, 2015 at 06:42 PM)

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.

View Answer


   
wendyw (May 14, 2015 at 04:21 PM)

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?

View Answer


   
AScampO (June 10, 2015 at 02:43 PM)

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.

View Answer


   
lauren.whiteaker (July 08, 2015 at 06:00 PM)

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?

View Answer


   
twhite1969 (July 13, 2015 at 11:41 AM)

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!

View Answer


   
watermarktech (July 14, 2015 at 07:07 AM)

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

View Answer


   
watermarktech (July 14, 2015 at 07:17 AM)

Don't worry this is now sorted.


   
EngPaired (August 06, 2015 at 12:45 PM)

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"

View Answer


   
zrll2 (August 11, 2015 at 11:53 PM)

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

View Answer


   
kmckenzie (September 04, 2015 at 11:41 AM)

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.

View Answer


   
mgregov (October 08, 2015 at 11:13 AM)

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?

View Answer


   
johnspring (September 28, 2016 at 04:04 AM)

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

View Answer


   
shyamk (October 13, 2016 at 10:15 AM)

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

View Answer


   
DPCREATE (November 07, 2016 at 06:30 PM)

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

View Answer


Send Comment