Skip to main content

Outline

This component is suitable for use when creating accessible courses.

The Slider Input component displays a slider in which the learner can set a numerical value and the submitted value can be saved to a variable.

This article provides an overview of the Slider Input component, component setup and behavior, and examples of Slider Input component configurations.

Component overview


The Slider Input component is an interactive component that lets you display a slider in which the learner can set a numerical value. The Slider Input component is flexible and, with the configuration set to Allow Editing, the learner can edit the set value after submitting. The set value can also be saved to a variable.

The Slider Input component is fully responsive.

Component set up


To add this component, follow the steps in this article:

The Property Panel for the newly added component will then open automatically for you to customize set-up.

Or click anywhere on an existing component to open the Property Panel.


General section

In the General section:

Screenshot of General settings

Add Title, or a Display Title, as needed. Display Title is seen by learners.

Screenshot of General settings

Scroll down and add your Body. Use the text editor to style and format your text, as needed.

Screenshot of General settings
  1. Add Instruction Text that tells users how to use the component.
  2. Include an Aria Label for screen readers, as needed.

Interaction Label section

In the Interaction Label section, you can enable an Interaction Label.

The Interaction Label allows you to add a widget before or after the Slider Input component. This widget can display an icon and label prior to the Slider Input component completion, which changes to a different icon and label once the Slider Input component is completed.

Slider section


Screenshot of Slider settings

In the Slider section, set Default Value, Minimum Value, and Maximum Value for your Slider Input component.

Screenshot of Slider settings

Scroll down the page and set values for Range Step, Range Minimum Label, and Range Maximum Label. Add Selected Value Label text and a Slider ARIA Label, as needed, to be displayed below the slider.

Screenshot of Slider settings
  1. Enter Submit Button Text that will be shown on the submit button.
  2. Enter Submitted Label Text that will be displayed once the submit button has been clicked.
  3. Toggle to Allow Editing. Enabling this setting allows the learner to edit the set value after submitting it.
  4. Enter Edit Button text, as needed.

Note: Enabling Allow Editing does not reset the components completion status.

Component Examples


The Slider Input component gives you a lot of flexibility. Below are examples that illustrate the Slider Input component setup:

Example 1 – displays the Slider Input component before a value has been set.

Example 2 – displays the Slider Input component after a value has been submitted.

Example 3 – displays the Slider Input component after a value has been submitted. The Allow Editing setting is enabled in this example and the Edit Button is shown below the component.

Behavior section


Screenshot of Behavior settings

In the Behavior section, you toggle to enable the setting Save User Answer to Variable. By default, this setting is disabled. If enabled, Select Variable or Create Variable.

Select Variable Save Type. Variable Save Type controls how the user's set value affects the value in the variable. Replace: replaces the current value of the variable with the value the learner saves in the component. Increment: increases the variable's value by the value that the learner saves in the component. Decrement: decreases the variable's value by the value that the learner saves in the component.

By default, Variable Save Type is set to Replace.

Did this article help?

Let us know by leaving a star rating or review at the top of this article.