Skip to main content

Checkbox Element

The Checkbox element in AVStudio allows users to toggle a value on or off. It's useful for filtering, form controls, or triggering logic based on user interaction.


How to Add a Checkbox

  1. Open your project in AVStudio and go to the Editor view.
  2. From the left panel, expand Page Containers, then select Container.
  3. Under Container Options, click on Elements.
  4. Click Add Element, choose Checkbox from the dropdown, then click Add Element.

New element modal for checkbox


Checkbox Settings Overview

Once selected, the checkbox's settings appear in the right panel.

Expanded checkbox settings panel


Checkbox Friendly Name

This is the label used to identify the checkbox in your layout.

  • Click the pencil icon next to the existing name to edit it.
  • Once updated, the new name will reflect across your project and help identify the element more easily.

Checkbox Dataset Source

This controls how data is assigned to the checkbox element. You can choose between:

  • Static (default)
  • Dynamic

Static

Under the Static option, you can manually configure values. One available setting here is Size.

Note: This Size refers to the dataset logic space — not the visual size of the checkbox itself.

  • You can manually enter a value for Width and Height.
  • Use px for pixels or % for percentage-based sizing.
  • To bind a value dynamically, click the {-} icon (curly bracket–dash–curly bracket) beside the field.

This allows for precise control over how the dataset behaves when statically assigned.

Mode Selector by Index or Name

This field allows you to control which checkbox mode is active, either by referencing its index or its name.

You have two configuration options:

Assign Dynamic Value: Click the {-} icon to bind Pick Dynamic Value to choose from available:

  • Variables
  • Parameters
  • State entries

This is useful when you want the value to change based on app logic or user interaction.

Assign Post-Processing Function: Click the fx icon to apply a post-processing function that manipulates the value before it's used.

  • Opens a dropdown that allows you to apply a function to the selected value
  • Common use cases include formatting, conditional logic, or calculation

These options give you control over how the field behaves both at runtime and during configuration.

Available Checkbox Modes

The Available Checkbox Modes setting lets you define different states for the checkbox, allowing you to control its behavior and appearance based on logic or user interaction.

To create a new checkbox mode:

  1. Click the + button next to the Available Checkbox Modes field.

  2. In the dialog titled Create new checkbox mode, configure the following:

    • Name: Enter a name for your new mode (e.g., NewMode, Selected, CustomState).
    • Copy from: Choose an existing mode to copy settings from. By default, this is set to Default.
    • Separate actions for this mode: Toggle this ON if you want this mode to have its own set of actions instead of sharing actions with the default mode.
  3. Click Add New Mode to save and apply the new mode.

Create new checkbox mode dialog

Modes are useful for customizing a single checkbox’s behavior across different page conditions or application states.

Checkbox CSS ClassName

The Checkbox CSS ClassName field allows you to assign a custom CSS class to the checkbox element. This class can be used to apply consistent styling across multiple elements or pages.

To configure this field:

  1. Enter a class name directly into the Checkbox CSS ClassName field (e.g., checkboxElement, customCheckbox, filterToggle).

  2. If you want to bind the class name dynamically:

    • Click the {-} icon to open the Pick Dynamic Value dialog.
    • Select a parameter, variable, or state entry to dynamically assign the class.
  3. Optionally, click the fx icon to assign a post-processing function to modify the class name before it is applied.

Use consistent and descriptive class names to make styling and layout control easier across your project.

Size

The Size section allows you to adjust the dimensions and spacing of the checkbox element's content.

To configure size settings:

  1. Expand the Size section from the checkbox's settings panel.

  2. Adjust the following fields:

    • Text Size: Sets the size of the text label next to the checkbox.

      • Enter a numeric value.
      • Use the dropdown to choose the unit (px, vh, vw).
      • Click the {-} icon to assign a dynamic value.
      • Click the fx icon to apply a post-processing function.
    • Default Gap: Sets the spacing (gap) between the checkbox and its label or internal elements.

      • Enter a numeric value.
      • Select a unit (px, vh, vw) using the dropdown.
      • Dynamic values and post-processing functions are also supported here.

These settings affect only the content size and spacing, not the dataset source size, which is configured separately under Checkbox Dataset Source > Static > Size.

Design

The Design section allows you to adjust the visual styling of the checkbox element, including font, label alignment, colors, and reflection.

To configure the design settings:

  1. Expand the Design section from the checkbox's settings panel.

  2. Configure the following properties:

    • Font Family: Choose the font type used for the checkbox label. Options typically include Default and any custom fonts available in your project.

    • Label Position: Select where the label appears relative to the checkbox. Available options include:

      • Top
      • Right
      • Bottom
      • Left
    • Checkbox Checked-State Background Color: Set the background color of the checkbox when it is checked. Click the color box to open the color picker and choose from preset colors or enter a hex/RGBA value.

    • Checkbox Checked-State Tick Color: Set the color of the checkmark/tick icon when the checkbox is in the checked state.

  3. Expand the Reflect section to enable a mirrored reflection effect.

    • Toggle between None and Enabled to activate or deactivate the reflection.
    • Configure the following reflection properties:
      • Align: Set the reflection direction. Options include Top, Bottom, Left, and Right.
      • Offset: Adjusts the distance between the checkbox and its reflection.
      • Start Opacity: Controls the opacity at the beginning of the reflection gradient.
      • End Opacity: Controls the fade-out opacity of the reflection.

Use design settings to ensure visual consistency across your project and to enhance the appearance of form controls.

Text

The Text section lets you define the label that appears next to the checkbox.

To configure the checkbox label:

  1. Expand the Text section in the checkbox settings panel.

  2. Enter a value into the text field. This will be displayed beside the checkbox.

    • For example: entering Subscribe to newsletter will render that text as the checkbox label in the layout.

Actions

The Actions section allows you to define what the checkbox should do when the user interacts with it.

To add an action:

  1. Expand the Actions section in the checkbox settings panel.

  2. Click the Add new action button.

  3. In the Create new action for checkbox dialog, configure the following fields:

    • Name: Enter a label to identify the action (e.g., Toggle Light, Submit Consent).
    • Behaviour: Choose when the action is triggered. For checkboxes, this is typically set to On Change.
    • Execution Delay: (Optional) Set a delay in milliseconds if needed before the action is executed.
  4. Choose an action type from the available tabs:

    • Crestron
    • Routing
    • Variables
    • Parameters
    • Overlays
    • Functions
    • HTTP Web Requests
    • Web Sockets
    • Audio
  5. Under the selected tab, configure the action logic. For example, under the Crestron tab:

    • Type: Choose the signal type, such as Push Digital.
    • Signal Name: Enter or assign the target signal.
    • Choose whether to Push onChange Value or Push custom Value.
  6. Click Create action to save.

You can add multiple actions per checkbox. Each can be tailored to execute different logic depending on project needs.

State

The State section controls the checkbox's visibility, availability, and checked status across different device orientations and conditions.

To configure the checkbox state:

  1. Set Orientation Visibility to determine where the checkbox should appear:

    • Both: Display on all devices
    • Mobile: Show only on mobile devices
    • Desktop: Show only on desktop devices
  2. Configure visibility settings:

    • Visibility Dynamic Value: Bind a value to determine whether the checkbox is shown or hidden based on logic.
    • Visibility Signal: Assign a signal to control visibility dynamically.
    • Reserve space when hidden: Enable this toggle if you want the layout to maintain space even when the checkbox is hidden.
  3. Configure interactivity:

    • Disabled Signal: Use this field to disable the checkbox based on a condition or signal. When disabled, the checkbox cannot be interacted with.
  4. Configure status logic:

    • Checked Status Signal: Bind a signal or variable to reflect or control the checked state of the checkbox.

These settings are useful when customizing behavior across device types, controlling visibility with logic, or syncing UI state with system parameters.