Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Version History

« Previous Version 2 Next »

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

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

  • No labels