# Copy field values

This feature copies a value from one field to another based on a condition.

![](https://4216568905-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Mc6E3BSGr4i8kVdH38k%2Fuploads%2F3knh7SDJfASBHoBTiMpN%2Fimage.png?alt=media\&token=b29a10ee-c08f-4246-b263-9860b7742db5)

To copy a field value,

1\.    Under **Copy field value condition**, click **Set condition**.

![](https://4216568905-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Mc6E3BSGr4i8kVdH38k%2Fuploads%2FxFmadqACxdymxKqRoKZa%2Fimage.png?alt=media\&token=2f2e4966-3e59-418d-95c0-0e3c3d6ae893)

The **Set condition** screen is displayed.

![](https://4216568905-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Mc6E3BSGr4i8kVdH38k%2Fuploads%2FUc9CX2UAaFp1fOHefvBZ%2Fimage.png?alt=media\&token=df783807-c4eb-4044-8937-61a2d44e12c9)

For instance, there are 2 [section ](https://docs.senpiper.com/form-builder/creating-forms/additional-form-settings/conditions/broken-reference)fields in a form, **Current Address** and **Permanent Address.** You want to autofill the subfields (Street name, City, Zipcode) of **Permanent Address** with the values filled in **Current Address**, if the user selects that **Permanent Address** is the same as **Current Address**. Refer the steps below to see how this condition can be added.

2\.    To add a condition, click **Add rule**.

The option to add a condition is displayed.

![](https://4216568905-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Mc6E3BSGr4i8kVdH38k%2Fuploads%2FcgDzbYxqgXDL54ZvNxef%2Fimage.png?alt=media\&token=efdecf07-2b8e-4fad-b2bc-98a9260d2739)

3\.    To enter the condition, enter the required field name, operator and field value and then click **Apply**.&#x20;

The condition is added in the **Copy field value condition** tab.

![](https://4216568905-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Mc6E3BSGr4i8kVdH38k%2Fuploads%2FyXlu7Fo6Q8AuW23OI3pz%2Fimage.png?alt=media\&token=8628e666-f80e-472a-9d47-25458444a515)

4\.    Select the fields from and into which the value is to be copied. &#x20;

![](https://4216568905-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Mc6E3BSGr4i8kVdH38k%2Fuploads%2FuInLmYOOWCH3RRnilNaW%2Fimage.png?alt=media\&token=6492fb68-4a4d-4673-948a-6f66175b4688)

The conditions for the subfields **City** and **Zipcode** can be added in a similar way.

5\.     To save the settings, at the bottom right of the screen, click **Save**.

Based on the settings above, the subfields of the **Permanent Address** are auto-filled when the user selects **Yes** for **Is Permanent Address Same As The Current Address?**

![](https://4216568905-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Mc6E3BSGr4i8kVdH38k%2Fuploads%2FPIWMyX1Y1iLxcgALzsVi%2Fimage.png?alt=media\&token=e5acc150-d1a1-4236-b559-e0506fb6a832)

{% hint style="info" %}
It's not mandatory to apply the condition. The field value can be copied from one form field to another without any condition as well.
{% endhint %}
