In Builder, you can create dynamic views per user with visibility settings.
You can use visibility settings to:
- Show, hide, or highlight data in the display
- Show or hide app objects
- Change formatting based on conditions
- Create dynamic views for app users
Visibility and app objects
In Builder, several app objects are automatically configured to let you control visibility. These include:
- Lists
- Blocks
- Content boxes
- Data cells
- Buttons
When an object is hidden, objects below it float up to take the space. For example, if a list or block is hidden, the app objects below it floats up to take its place.
This not only creates a tighter layout, but also addresses conditional use cases. See more about conditional visibility below.
Default visibility settings
App objects are always set to =TRUE
by default. This means that if no conditions are added, the object and its data will always be displayed to app users. Conversely, to always hide an app object from users, you can simply change the formula to =FALSE
.
Visible:
=TRUE
, the field or object will always show
Hidden:=FALSE
, the field or object will never show
Unlike filters, which specify the scope of information shown, visibility determines when app objects and their data are visible in a screen.
Builder's tip: Lists and blocks are container objects. If the container is hidden, then all the app objects inside will be hidden as well. However, when a list or block
=TRUE
, you can individually set the visibility for contents boxes, data cells, and buttons inside.
Making visibility conditional
Conditional visibility is a versatile way to dynamically display objects and data in your apps.
In the default visibility section we saw how to always show/hide an app object. Now, let’s see how we can use formulas to show/hide data and objects based on a condition. Similar to the default settings for visibility, conditions should return either =TRUE
or =FALSE
to determine what’s shown and what’s hidden.
Conditions include:
- Contains/ does not contain a specified value
- Equals/does not equal a numerical value
- Is greater than/less than a number between two numeric values
- Is/is not within a specified date range
- Is/is not the selected app object
Let’s start with a simple example; we’ll use =[Column1]=1
. We’ll assume this formula is added as a visibility condition for a list in your app. If the cell contains “1” the formula will return =TRUE
and the list will be displayed. For all other cell values, the list will not be displayed.
How-to add conditional visibility & data validation
Click here to view our step-by-step how-to.
Visibility is a not a security feature
Honeycode mobile and web apps hide objects from the app display. However, data that is hidden is still sent to the app. Visibility should not be used as a security feature.
Was this article helpful? |
---|
- Yes
- No
0 voters