i have a requirement where i need to enter 25 digits for a text field and i don't allow the user to enter any alphabets or symbols i need write a validation this can be done with the help of regexmatch function but now it is deprecated how to write validation. pls help me with code.
Discussion posts and replies are publicly visible
Who says this is deprecated?
This alternative checks for each digit if it is in 0-9
a!localVariables( local!string: "0956787x65678", all(contains(char(48 + enumerate(10)), _), char(code(local!string))) )
Hi Stefan correct me if i am wrong when i testing in interface it is showing this.
You can also add char(32) inside the contains() if you want to allow space in the text field.
Hi V.Sanath Kumar
Regex functions are from Appian Regular Expression Function plugin so your environment may not have that plugin added.
Plug-in link - Appian Community
Thanks Stefan given code is implemented working as per expectation.
Alternatively, You can use the dedicated field that servs this functionality.a!integerField()