Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Insert excerpt
_Banners
_Banners
namescreen
nopaneltrue

Overview

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

  1. Toggles are available from the Toggles section of the palette.
  2. Drag one onto your screen.
    1. Its value is now available using the syntax _form.ToggleName
  3. 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

Example - Switch View

Types

Type

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

Image Added

Both views exist in the same location, but their formatting rules hide them depending on the toggle state. Here is the formatting setup for the Card View. If the _form.GridView returns true we apply the Hidden style to the Card View.

Image Added