Ask AI
Skip to main content

Set slider field as required

Function: Set slider field as required

This action allows you to control whether a 'Slider Field' on your form must be filled out by users before they can submit the form. You can make it mandatory or optional, and even customize the message shown if a user tries to submit without completing it.

Input,

  • UI element (Slider Field): Select the specific Slider Field component on your page that you want to make required or optional. This is a mandatory input.
  • Required (True/False): Decide if the selected Slider Field should be mandatory (True) or optional (False) for users.
  • Required message (Text): If you set the field as Required, this is the custom message that will be displayed to the user if they try to submit the form without interacting with this slider. If left blank, a default message ("This field is required") will be used.

Output,

This action does not produce any direct output. It modifies the behavior of the specified Slider Field on your page.

Execution Flow,

Real-Life Examples,

  1. Making a "Satisfaction Score" slider mandatory

    • Inputs:
      • UI element: Satisfaction_Slider
      • Required: True
      • Required message: Please rate your satisfaction before submitting.
    • Result: The Satisfaction_Slider on the feedback form will now be mandatory. Users must move the slider to a value before they can submit the form, and if they don't, they will see the message "Please rate your satisfaction before submitting."
  2. Making an "Optional Donation Amount" slider optional

    • Inputs:
      • UI element: Donation_Amount_Slider
      • Required: False
      • Required message: (Leave blank)
    • Result: The Donation_Amount_Slider on the donation form will be optional. Users can choose to interact with it or leave it untouched without affecting form submission.
  3. Updating the required message for an existing mandatory slider

    • Inputs:
      • UI element: Age_Range_Slider
      • Required: True
      • Required message: Your age range is required for demographic analysis.
    • Result: The Age_Range_Slider remains mandatory, but the error message displayed to users who don't interact with it will now be "Your age range is required for demographic analysis."