Switch Properties

Description

Switch controls are ideal for toggling between two states, such as 'Yes' or 'No, in which repeated entry into a field might become onerous.

Name
Description
Sub-theme

Sets the sub-theme for a Switch Control.

Width

The Width property specifies the width of the control. The default width is .75in but other forms of measurement can be used.

Flow

Flow specifies the control's 'flow' direction. This can be left-to-right (LRT) or right-to-left (RTL).

Text for 'on' state

This optional property causes text to be displayed when the switch is in the 'on' state. Because the text is often centered in the middle of the control it might be necessary to increase the width of the switch control in order to see it.

Text for 'off' state

This optional property causes text to be displayed when the switch is in the 'off' state. Because the text is often centered in the middle of the control it might be necessary to increase the width of the switch control in order to see it.

'On' value

The stored value for the on state for a character type Switch control.

'Off' value

The stored value for the off state for a character type Switch control.

OnSelect event

Specify JavaScript to run when the Switch control's state changes.

A Switch Control