The current validation feature supports:
- Requiring a value to exist
- Requiring the value to match a regex pattern
- Requiring the value to be a date
Some examples:
- Validating if the value is a valid email address can be pretty complicated with regex, but JS has a built-in check
- Validating if a value exists in at least 1 input regardless of which one (like a home or mobile number is required, but not both)
- Requiring a value to be entered only if a certain option is selected (like email is required only if selected as the primary contact method)
- Validating that a list of inputs have no duplicate values