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.

How to give max length for a variable on catalog item?

swathigangadhar
Tera Expert

How to give max length for a variable on catalog item?

For a text field i need to restrict length to 255 character on item field.

1 ACCEPTED SOLUTION

karthikdurga
Mega Expert

Create a variable of type macro, and in the macro define an input field of size 255. Sample code is provided below.



sa.JPG


View solution in original post

5 REPLIES 5

Kartik Patil
Giga Contributor

max_length=255  (for single line text field)