Page 1 of 1

EP Validation Using JS

Posted: May 11th, 2022, 3:55 pm
by JefferyD
Could a way to use JavaScript be added to the EP validation feature?

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
These handle many scenarios very well, but there are some scenarios where it can be complicated or even impossible to utilize the validation feature.
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

Re: EP Validation Using JS

Posted: May 19th, 2022, 1:25 pm
by JustinVanRegenmorter
Task #10464 has been created. We will update this post when it has been completed.