Upvote 1

Condition for when field does NOT include special characters

In Progress Jessica Slade 4 years ago

I want to create a condition that is basically IF !@#*. are present in the text field, show 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?

Replies (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.

Leave a Comment
 
Attach a file