AnsweredAssumed Answered

How to NOT allow users to enter a blank space in a field - Field Validation

Question asked by chelledavis11 on Aug 1, 2018
Latest reply on Aug 27, 2018 by chelledavis11

I have a form with a lot of validation based on what item is selected from a dropdown.  An issue I just discovered was that even though I have the NotValidIfNullOrEmpty the data can still accepted (Saved) if a space is "entered" - I go into the field and physically enter a space. What is the best way to handle that problem? I tried adding on to the statement in the attached graphic: OR IF Field = " " THEN it would be invalid, but I was able to save the item.

 

Update 1: I am now trying to work with the Regular Expression. I am getting closer but still not the desired output: I entered this expression:

^.*(?=.*\d)(?=.*[a-zA-Z]).*$

It works to some extent BUT I can still enter a blank space and the form saves

Outcomes