Domino Code Fragment

Code Name*
Limits a field's entry and removes illegal characters - Sample of Serial # Field
Date*
04/28/2024
Source (or email address if you prefer)*
Rlatulippe@romac.com
IP address:.18.118.210.213
Description*
Put this in a field's Input Validation formula
Type*
Formula
Categories*
(Misc)
Implementation:
Required Client:
Server:
Limitations:
Comments:
Files/Graphics attachments (if applicable): Code:
@If( @Matches(Serial_Num; "+{0-9}"); @Success; @Matches(Serial_Num; "+{a-zA-Z}"); @Success; @Do(@Prompt([OK]; "Invalid Serial Number"; "The Unit Serial Number contains an illegal character, probably a carriage return. Please remove the illegal character and save again."); @Return("")) )