# Using report data in forms

In the **Section** field, we can populate its fields using the data from reports.

For instance, we have a section for **Location co-ordinates** with the fields **Latitude** and **Longitude**. We want to import data for these 2 fields from a report called **Location**.

To achieve this,

1\.    In the settings for the **Location coordinates** section, turn on the toggle for **Do you want to populate data in fields from a report?** and then select the required report.

![](/files/5e5ektYeDdMEhCGIsNqM)

2\.    To map the fields of the form to the fields of the report, click **Configure**.

![](/files/BPOVZ0KSFsN4Bc8AYrlA)

3\.    Select the fields of the form and map them to the respective fields of the report, and then click **Apply**.

As you can see in the above image, the **Latitude** and **Longitude** fields of the form are mapped to the **Latitude** and **Longitude** fields of the **Location** report.

4\.    While filling the form, the user has to click on **Add Data To Submission**.

![](/files/0T787HKkx2mJpbfk0Cqy)

The fields **Latitude** and **Longitude** will be populated from the report.

#### Fetch filtered report data based on a form field value

While creating the configuration to use the report data in a form submission, the user can also choose to get filtered report data based on a form field value provided the quoted form field exists in the section array where report data is to be used for submissions.

For example, wa report data based on 'Inventory form' which is being used for 'Item form' submissions. In 'Item form' there is a section array with different item names and their details which are to be filled with report data from 'Inventory form'.&#x20;


---

# 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/advanced-concepts/using-report-data-in-forms.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.
