Skip to main content
Nintex Community Menu Bar
Solved

Validate Multiple lines of Text Box not allow special characters

  • June 27, 2024
  • 2 replies
  • 186 views

Forum|alt.badge.img+3

Hello - I used SP2016 on premises. I would like to validate Multiple lines of Text Box (Comments field) not allow  special characters. How can I validate it with Nintex Form Validation Rule? I’m appreciated for your help. 

Best answer by SimonMuntz

Hi @YV,

Great question.
Unfortunately, the validation features do not allow for a regular expression, so you will have to use a long rule that checks if the text in the control has a special character.

The below checks for two special characters, but you must keep adding || or statements to this rule for each character you want to check.
 

contains(MLT,"?")||contains(MLT,"@")

 

2 replies

SimonMuntz
Nintex Employee
Forum|alt.badge.img+23
  • Nintex Employee
  • Answer
  • June 28, 2024

Hi @YV,

Great question.
Unfortunately, the validation features do not allow for a regular expression, so you will have to use a long rule that checks if the text in the control has a special character.

The below checks for two special characters, but you must keep adding || or statements to this rule for each character you want to check.
 

contains(MLT,"?")||contains(MLT,"@")

 


Forum|alt.badge.img+3
  • Author
  • Rookie
  • June 28, 2024

It works. Thanks, SimonMuntz.