Insert excerpt | ||||||||
---|---|---|---|---|---|---|---|---|
|
Overview
Coming soon...A toggle component is a switch that returns true or false, when it is enabled or disabled respectively. Its useful for showing and hiding content based on whether it is enabled or not.
Setup
- Toggles are available from the Toggles section of the palette.
- Drag one onto your screen.
- Its value is now available using the syntax
_form.ToggleName
- Its value is now available using the syntax
- The state of the toggle can now be accessed by any object on the screen within its formatting rule. see Applying Formatting Rules. When the toggle is enabled,
_form.ToggleName,
will return true which means your formatting rule will be applied.
Examples
Switch View Types
In our Demo CRM app available from downloads, we have a toggle switch between a card view and a grid view. This is illustrated below:
Card View
Grid View