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


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.senpiper.com/form-builder/creating-forms/additional-form-settings/conditions/copy-field-values.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
