# 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.

![](https://4216568905-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Mc6E3BSGr4i8kVdH38k%2Fuploads%2FdZl9c00MGZax67YMwxBJ%2Fimage.png?alt=media\&token=dab136f4-10b7-42ef-9d23-761012e3342a)

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

![](https://4216568905-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Mc6E3BSGr4i8kVdH38k%2Fuploads%2FVXxrUQ5OLCrdPb7UCNG2%2Fimage.png?alt=media\&token=d897869e-77f9-40ee-a1df-0d285b887083)

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

![](https://4216568905-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Mc6E3BSGr4i8kVdH38k%2Fuploads%2FMX61jvzdwrpoOYu4mBZl%2Fimage.png?alt=media\&token=403a51b0-1966-412a-be20-86d3ab822b18)

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;
