Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Restrict single line text variable Limit to 150 characters

samadam
Kilo Sage

How can I restrict single line text variable Limit to 150 characters, I tried to add attribute max_length but not working.

4 REPLIES 4

Alikutty A
Tera Sage

Hello,

I have tried the attribute and it worked for me. Have you added the same way?

find_real_file.png

samadam
Kilo Sage

Thank you, I figured out the problem. I had the field that it is mapping to set to 40 once I changed that it worked.

PANKAJ MAHTO1
Tera Expert

Hi ,

 

You may use Variable Attribute as "max_length=150". So on that Users can't fill more than 150 characters.

 

find_real_file.png

Sushma Mashale
Kilo Expert

Hello Samadam,

To restrict single line text variable limit to 150 characters, you can try this

variable attributes: max_length=150

 

 

 

regards,

sushma