Condition for when field does NOT include special characters

Jessica Slade shared this problem 2 months ago
In Progress

I want to create a condition that is basically IF !@#*. are present in the text field, show [this] panel. It's a password creation rule that doesn't allow those characters in a new password. Anyone know what this sequence would look like here?

Comments (1)

photo
1

Sure! You'll need to use a regular expression which can check for those characters. You can create this condition:

9b0541aa067067ce7db2e4f0b3f4789c

Find the RegEx function in the 'Text' section. Copy and paste this in the next space:

^[a-zA-Z0-9]+$
The next part of the condition checks to see if the input field isn't empty. If both are true, then you'll show an error message.

We've created another event that will hide the error message and show a 'Success' box. The condition for that is the same as above, just don't include the Not in the front.