Is there a way to run some JS code for a custom validation rule & message? I see the “validation type” can be scripted, but it seems to expect one of the existing validation types to be specified (i.e. regex). I want to run a block of code for validation and return true/false. Separately, I want to provide a specific error message if that validation returns false.
My specific use case is an async unique check on a Text Input. I want to hit an API on input to verify uniqueness, then fail validation.