> For the complete documentation index, see [llms.txt](https://docs.senpiper.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.senpiper.com/form-builder/creating-forms/additional-form-settings/conditions/copy-field-values.md).

# Copy field values

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

![](/files/lRSyNWvKsE7MOnRZJpuF)

To copy a field value,

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

![](/files/AbGjJVzTJRyPQwkumWzk)

The **Set condition** screen is displayed.

![](/files/1FGaMoczPVJmwwzFGIED)

For instance, there are 2 [section ](broken://pages/QKhaBFaDEArfi7kLaF7S)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.

![](/files/GeQrcuETXKniKRh8xvkg)

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.

![](/files/ttDAfFCJUrDkoRErfmNu)

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

![](/files/HynwvTXwt3b4VOGI6BVt)

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?**

![](/files/PKkTVIrfVcrAqlL6tKhQ)

{% 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 %}
