Set invalid message of Check box field
Function: Set invalid message of Check box field
This action allows you to define a specific error message that will appear next to a Check box field on your form when its input is considered invalid. This helps guide your users on how to correct their input, making your forms more user-friendly and preventing submission errors.
Input
- UI element (Required): This is the specific Check box field on your application's form that you want to configure. You select it directly from your application's design interface.
- Invalid message: This is the custom text you want to display to the user when the selected Check box field's value is invalid according to your validation rules. For example, "Please agree to the terms and conditions." If you leave this field empty, any previously set custom message will be removed, and the field might use a default error message or none at all.
Output
This action does not produce a direct output value. Its effect is to update the specified Check box field's behavior on your form, specifically how it displays error messages.
Execution Flow
Real-Life Examples
Example 1: Enforcing Terms and Conditions Agreement
- Scenario: You have a registration form where users must agree to terms and conditions by checking a box. If they try to submit without checking it, you want a clear message.
- Inputs:
- UI element:
Terms & Conditions Checkbox(the specific checkbox on your form) - Invalid message:
You must agree to the terms and conditions to proceed.
- UI element:
- Result: If a user attempts to submit the form without checking the "Terms & Conditions Checkbox," the message "You must agree to the terms and conditions to proceed." will appear next to the checkbox, guiding them to correct their input.
Example 2: Confirming Data Privacy Consent
- Scenario: Your application collects user data, and you need explicit consent for data processing, represented by a checkbox. If the user doesn't check it, you want to inform them why it's required.
- Inputs:
- UI element:
Data Privacy Consent Checkbox - Invalid message:
Please confirm your consent for data processing.
- UI element:
- Result: When the form is validated and the "Data Privacy Consent Checkbox" is not checked, the system will display "Please confirm your consent for data processing." next to the checkbox.
Example 3: Resetting an Invalid Message
- Scenario: You previously set an invalid message for a checkbox, but now your form logic has changed, and that specific validation is no longer needed, or you want to revert to a default behavior.
- Inputs:
- UI element:
Newsletter Opt-in Checkbox - Invalid message: (Leave this field empty)
- UI element:
- Result: Any custom invalid message previously associated with the "Newsletter Opt-in Checkbox" will be removed. The checkbox will now either display no specific error message or revert to a system-defined default if it's still considered invalid by other rules.