I have a textField that I do not want users to be able to enter in a space unless it is a part of the case number.
For example, users should not be able to enter this:
But if there are spaces in the case number, then it should be allowed
I've tried regexmatch, I've tried a if / isnullorempty statement
example:
if( a!isNullOrEmpty(ri!notice), "Case Number is invalid.", null() )
Discussion posts and replies are publicly visible
You try this below code
a!localVariables( local!caseNumber, a!textField( label: "Case Number", labelPosition: "ABOVE", saveInto: local!caseNumber, placeholder: "Enter Case Number", refreshAfter: "UNFOCUS", value: local!caseNumber, validations: { if( or( a!isNullOrEmpty(local!caseNumber), len(trim(local!caseNumber)) = 0 ), "Case Number is invalid.", null() ) } ) )