EP Validation Using JS
Posted: May 11th, 2022, 3:55 pm
Could a way to use JavaScript be added to the EP validation feature?
The current validation feature supports:
Some examples:
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