Smart form validation — Ensure specific character is entered into field

345
0
10-13-2023 07:29 AM
Status: Open
Bud
by
Honored Contributor

In AGOL smart forms, it would be helpful if we could validate what a user types in an input field, ensuring a specific character is included in the input value.

Example: Force the user to enter a value that has a '-' (dash). This doesn't seem to be possible using AGOL Arcade functions.

Related: @DylanKennard-tt in Smart Forms Regular Expression

I am building this with 100% AGOL. So as a result Attribute Rules are not possible (Hopefully they implement that one day). I am looking for some sort of "Regular Expression" method in Smart Forms. I simple need the user to make sure they have a '-' (dash) in the input field. Arcade Logical functions don't seem to solve it, I cannot do a calculated value, and "FIND" also does not work. Thoughts? Regular Expressions are a core part of Python, JavaScript, etc. Will arcade eventually implement something this common?