Child Forms
Last updated
Last updated
In Appverse, Child forms are forms that are linked to a parent form, usually to capture related or additional data. They are typically used in scenarios where a record in the parent form has associated data that needs to be captured in a separate form. For example, a parent form might capture basic customer details, while a child form could capture multiple addresses associated with that customer.
Child forms should be used when there are complex data relationships. By using child forms, you can maintain a structured, hierarchical data, improving both data integrity and user experience.
In the Child Forms settings, you can provide
Select Child Form - The child form that needs to be linked to this parent form.
Conditions - In the case of child forms, conditions allow you to define specific criteria that determine when a child form should be displayed. For example, you can set a condition that shows the child form only when the parent form has a certain value, like displaying an order details form only if the 'Order Status' is marked as 'Completed.' By configuring conditions, you can ensure that only valid child forms are shown. To learn more about setting up conditions, refer to "Conditions in Appverse".
Context Mappings - Context mappings can be used to link a field in the child form to the corresponding field in the parent form. All fields that have a corresponding mapping between the two forms must be mapped. These mappings enforce the linked condition when child data is displayed. Additionally, when data is entered in the child form, the mapped fields automatically inherit default values from the parent form. Click '+Add Mappings' to add a new mapping. To remove a mapping, click the red 'X' button. To clear the current mapped value and select a new one, click the 'X' button in the input field.
Question in the current form - This refers to the field in the current form.
Question / Property Name in the lookup form - This refers to the source field in the lookup form or custom query.
Add - Use the "+ Add" button to add multiple child forms.
You can have as many child forms linked to a parent form as are required. For example, in case of a customer form, you may have the following child forms
Customer Addresses
Customer Orders
Customer Payments etc.