Slider types and their input attributes
Summarize
Summary of Slider types and their input attributes
This guide explains various slider types you can create in ServiceNow and the specific input attributes required for each. Sliders help users select numerical values by providing interactive controls, with different configurations enhancing usability and visual clarity. Understanding these attributes allows you to tailor sliders to fit your application's functional and design needs effectively.
Show less
Slider Types and Input Attributes
- Default Value Slider: Provides a starting numerical value to guide users. Requires Min, Max, DefaultValue, and StepSize. The EnforceStepSize attribute is optional.
- Visual Steps Slider: Displays distinct steps visually to clarify each selectable position. Requires Min, Max, StepSize, and VisualStepsEnabled. DefaultValue and EnforceStepSize are optional.
- Enforced Step Size Slider: Ensures users select values strictly at predefined increments, suitable for large value ranges. Requires Min, Max, StepSize, and EnforceStepSize. DefaultValue is optional. If a value outside allowed increments is chosen, an error message appears.
- Reference Point Slider: Includes a reference point to help users understand their position relative to an expected or typical value, such as a midpoint indicator. Requires Min, Max, StepSize, and ReferencePoint. DefaultValue and EnforceStepSize are optional.
- Decorative Step Slider: Enhances user interface aesthetics with numeric values, labels (e.g., good, poor, bad), and color-coded steps to improve accessibility and visual comprehension. Requires Min, Max, StepSize, and Decoration. DefaultValue and EnforceStepSize are optional.
Practical Implications
By selecting the appropriate slider type and configuring its input attributes, you can improve user experience by providing clear guidance, preventing invalid inputs, and enhancing visual appeal. The optional attributes allow flexibility depending on whether defaults or strict step enforcement are needed.
For comprehensive details on all input attributes related to sliders, refer to the Number inputs section in the Input form screen attributes documentation.
Review the sections to see slider type examples and learn which input attributes are used to create them.
- The input attribute DefaultValue is the numerical value displayed when a user first views the slider. In some of the sections below, the DefaultValue input attribute is marked as optional, because you're unable to tell if the attribute was used in the displayed images.
- The input attribute EnforceStepSize isn't a visual attribute. It's marked as Optional in some of the sections, as you're unable to see if it has been used from the images displayed.
Default value slider
- Min
- Max
- DefaultValue
- StepSize
- EnforceStepSize: Optional
Visual steps slider
- Min
- Max
- DefaultValue: Optional
- StepSize
- VisualStepsEnabled
- EnforceStepSize: Optional
Enforced step size slider
- Min
- Max
- DefaultValue: Optional
- StepSize
- EnforceStepSize
Reference point slider
- Min
- Max
- DefaultValue: Optional
- StepSize
- ReferencePoint
- EnforceStepSize: Optional
Decorative step slider
- Min
- Max
- DefaultValue: Optional
- StepSize
- EnforceStepSize: Optional
- Decoration
For more information, see Configure a decorative slider.