Lookup
Last updated
Last updated
In Appverse, some forms are designed for view-only purposes. These are known as 'Shell Forms,' and their data is sourced from another form or a custom query. Lookup is used to define the source of the data for the form.
In the Lookup settings, you can provide
Type - The 'Type' field is used to specify the source of the form's data. Currently, only 'Form' and 'Custom Query' are supported.
Form / Custom Query - If 'Form' is selected in the 'Type' field, the dropdown will show a list of all available forms; otherwise, it will display a list of custom queries.
Conditions - In the case of Lookup, conditions allow you to define specific criteria that determine which data should be displayed in a form. By setting conditions, you can filter data based on field values, ensuring that only relevant information is shown to the user. The conditions property is currently allowed only when the type is set to 'Form.' For more details on conditions, refer to "Conditions in Appverse."
Mappings - Mappings can be used to link a field in the data source to to the corresponding field in the current form. All fields that have a corresponding source in the mapped form or custom query must be mapped. 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.
Active - When enabled, the lookup configuration will be activated. By default, it is turned off.