If you are using selectors or checkboxes, you can display sections based on the selections made in the selectors. There are two ways to go about this. Either you can have a singular section displayed based on single options selected or you can display multiple sections if many options are selected.
In this help guide, you will see how to display sections for multiple selections. For single selections, you can refer to this guide.
Example: Here is an example of an Inspections app. It has multiple sections which need to be displayed when the option in the checkbox is selected.
In App Home, without giving any conditions, it will display every section with their corresponding fields.
However, with conditions, you can get the sections with their corresponding fields to be displayed when selected.
In Design App, where you create/edit the app interface, a multiple selector block is used to display all the options. Here, the section names are listed as the options.
Using SEARCH formula
For each of the sections, you will have to give conditions. For example, taking the ‘Electrical Safety’ section, click on the section and go to the Advanced tab on the right panel. Under ‘display this section if’, you will be able to give formulas similar to spreadsheets. Since multiple sections would be selected and needs to be displayed,
you can give the formula: SEARCH("Electrical Safety",{sel})>0
where “Electrical Safety” is the section name and {sel} is the variable name of the multiple selector block.
Do this for every section. Here in this example, for the ‘General’ section, the formula will be: SEARCH("General",{sel})>0 and for the ‘Hazard’ section, the formula is: SEARCH("Hazard",{sel})>0 .
In App Home, the selection of ‘Electrical Safety’ and ‘Hazard’ sections in the multiple selector will display them both in the app while the ‘General’ section is not displayed as it is not selected.
140L, 5th Main Rd, Sector 6, HSR Layout, Bengaluru, Karnataka 560102, India
+91 96418 61031
3500 S DuPont Hwy, Dover,
Kent 19901, Delaware, USA
+1 (341) 209-1116
3500 S DuPont Hwy, Dover,
Kent 19901, Delaware, USA
+1 (341) 209-1116
140L, 5th Main Rd, Sector 6, HSR Layout, Bengaluru, Karnataka 560102, India
+91 96418 61031