Follow

Checkbox

The Checkbox is a control that permits the user to make a binary choice, i.e. a choice between one of two possible mutually exclusive options. For example, the user may have to answer 'yes' (checked) or 'no' (not checked) on a simple yes/no question. 

Like almost all SPARK controls, you can trigger events that are fired when the user interacts with the control (see the Event and Methods sections below and the Event Handling article for more information).

The Checkbox control can be bound to a Boolean variable.

Behavior

Tab Index Form control tabbing sequence index. Tab indices start at 1, and may be set sparsely; this controls the tabbing sequence when using the 'Tab' key on the keyboard and is for ease of tabbing through information on Coaches.

Example

These are the configuration option settings...

 

This is the result ...

Events

With the Checkbox control, there are 2 types of event handlers:

  • On Load When the page loads
  • On Change When there is a change

You can use JavaScript logic to affect the effects of the control, depending on the event. More information on using these controls can be found in the Event Handling article.

Methods

For detailed information on the available methods for this control, access the JS Doc file.

 

  • Author: Courtney Silva
  • Date Created: June 5, 2015
  • Date Modified: July 27, 2015
Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request

Comments