---
title: How to use forms in the DSN Demo mobile app
slug: docs/how-to-use-forms-in-the-dsn-demo-mobile-app
docTags: 
createdAt: 2024-12-19T12:03:27.490Z
---

If you want to add your custom form in the app, you need to add not only the form fields but also update Data Collection property with additional data elements and rules.



### Prepare form in your mobile project

::Image[]{src="https://api.archbee.com/api/optimize/bAgVaanSi1tFmfc8PghaH/_1NCZxQuFAKnOcAQqyGLy_bodea-inc.png" size="48" width="940" height="1800" position="center" showCaption="false"}

The form fields need to have names and also have assigned the same Form Id

![](https://api.archbee.com/api/optimize/bAgVaanSi1tFmfc8PghaH/yozP0eSHWCOfr980xhaQ6_pasted-graphic-6.png)

### Update Data Collection property

1. Create additional data elements, one data element for each form field





::Image[]{src="https://api.archbee.com/api/optimize/bAgVaanSi1tFmfc8PghaH/jR9DlovK4mYT4yuODiTGF_pasted-graphic-8.png" size="74" width="2586" height="1384" position="center" showCaption="false"}

The path is data.xxx as this is where the values from form will be sent



![](https://api.archbee.com/api/optimize/bAgVaanSi1tFmfc8PghaH/iAxHUAdNyh8NP0BGUECgp_pasted-graphic-9.png)

2 Add the rule to enrich data using your new data elements, which will be run&#x20;

Rule Condition



![](https://api.archbee.com/api/optimize/bAgVaanSi1tFmfc8PghaH/hlkqIGQJGOniitm_E6BsB_image.png)

Action of the rule

![](https://api.archbee.com/api/optimize/bAgVaanSi1tFmfc8PghaH/QVIK8MFrmfGXLMeFXke1Z_pasted-graphic-10.png)

