# Populate local field with data from another local field

This is for taking data from one field and copying it somewhere else in the same bloc. This rule can be applied to any field even though it might be controlling things between two other fields.

{% hint style="success" %}
Hint: You could apply this rule to a button press in order to trigger the copying of the data from one field to another, even though the rule will be set on the button, there will be no data from the button itself being used.
{% endhint %}

![](/files/-Ma4t4JXxExdEh3v2UI2)

### Rule Parameters

| Parameter               | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
| ----------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| Local Field to fetch    | The field that contains the data that we want.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
| Local field to populate | The field that we want to move the data to, i.e. the destination field.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| Overwrite existing data | <p><strong>Yes:</strong> Simply overwrites and wipes any data that might be on the destination field to populate. So even if the local field has nothing, the destination field gets wiped blank.</p><p></p><p><strong>No:</strong> If there is data already in the destination field then it does nothing.</p><p></p><p><strong>Ignore if blank:</strong> If the local field to fetch has no data, then nothing will happen to the destination field.</p><p></p><p><strong>Append to Data:</strong> It will add the value of the local field to fetch onto the end of whatever is currently in the destination field. This would mean if you kept triggering this rule the data in the destination field would get longer and longer.</p> |


---

# 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://manual.blocworx.com/blocworx-documentation/bloc-editor/managing-a-field/field-rules/populate-local-field-with-data-from-another-local-field.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.
