{"section":"tutorials","requestedLocale":"en","requestedSlug":"creating-form-in-master-data","locale":"en","slug":"creating-form-in-master-data","path":"docs/en/tutorials/master-data/master-data-v1-settings/creating-form-in-master-data.md","branch":"main","content":"A form serves as an interface for the visualization and manipulation of a data entity. Essentially, it acts as a field aggregator.\n\nAlthough always associated with a data entity, it is not mandatory for it to contain all the fields related to it; it can be customized according to demand. This way, it is possible to create different forms for the same entity, adapting to various needs. For example, a purchase form may include fields such as ID, customer, and date.\n\nTo create a form, follow the steps below:\n\n1. In the VTEX Admin, access **Store Settings** > **Storefront** > **Master Data**.\n2. Make sure that you are in the __Applications__ tab.\n3. In the application in which you want to create the form, click on the gear icon <i class=\"fas fa-cog\"></i>.\n4. After opening the list of forms, click `New`.\n5. Fill in the fields as described in [Fields for the new form](#fields-for-the-new-form).\n6. Click `Save`.\n\n## Fields for the new form\n\n- **Nome:** Form name.\n- **Filters:** Fields marked as entity filters; these fields will make up the side filters of the form. The internal name of the field must be entered. If there is more than one field, separate them with comas. For example: campo1,campo2.\n- **Data entity:** This is the data entity in which the form will save and display the data.\n- **Search highlights:** Fields that will be listed in the search results. The internal name of the field must be entered. If there is more than one field, separate them with comas. For example: when searching for a customer, the list of results must include the customer’s ID and name; so, the field must be filled out with `id,nome`.\n- **View queries:** Enables a new section in the display form with the records of an entity related to the form’s entity. The information displayed will relate to the record that is being viewed.   \n\n   For example, the __Shopping List__ entity includes a field whose type is __Relationship__, which is related to the __Customer__ entity. So, in the __View queries__ field of the __Customer__ form, you must enter the __Shopping List__ field that refers to the __Customer__.\n\n   If the acronym of the __Shopping List__ entity is __SL__, and the name of the field is __Customer__, you must enter: `SL.Customer` to upload the customer service that is being viewed in the form.\n\n   ![relatedRecords-en](https://cdn.statically.io/gh/vtexdocs/help-center-content/refs/heads/main/docs/en/tutorials/master-data/master-data-v1-settings/creating-form-in-master-data_1.png)\n\nAfter filling out the mandatory fields, the tabs available for configuration will be displayed. See below the fields of these tabs.\n\n- **List Fields:** Select the fields included in the records list when clicking to view the form. To this end, just select the check boxes appearing at the side of the fields that you want to appear on the list. It is also possible to set up the width of the field on the list (column width), the display order and the ordering.\n\n   The order of the fields on the list will follow the order viewed in this screen, that is, for a field to appear in the first column, click on the up arrow until it becomes the first field. Ordering is defined by one field. Select one field and choose between ascending (Asc) or descending (Desc) order.\n- **Layout Schemas:** definition of how the fields will be displayed in the form, both for viewing, and for editing and creating the fields. That is, the position of each field in the form will be set up in this phase, and they also be divided by sections.\n\n   1. Click on the `Add New Section` button.\n   2. Fill out the __Name__ field to name the section.\n   3. Drag one field from the **Available Fields** list to the **Fields of Column 1** column. The same can be made regarding the **Fields of Column 2** column.\n\n   Repeat these three steps until you reach the format desired for the form. You can include several fields in a single column, as well as create several sections.\n\n- **Queries:** This tab is only intended to show the [queries created on the list](/en/docs/tutorials/creating-custom-queries-in-master-data-v1).\n- **Style Sheet:** Tab to enter the CSS to edit the frontend of the form."}