How to display counter for number of characters left on catalog item variable

BijoyDeb
Tera Contributor

Hi All,

 

I have to create one variable on my record producer with limited length, like text box one.

In that text box, I have to show some info text which should disappear once user clicks in that box to fill it.

Also, as its limited length variable, I have to show how many characters are left for that field once user starts typing in that text box.

 

How can we achieve this? Is it even feasible in servicenow?

1 ACCEPTED SOLUTION

Sanjay191
Tera Sage

Hello @BijoyDeb 
Please Refer the below  approch

write the onchange client script and put max charecter that we can put, write in  help test so that we can identify how much charecter we can put in this field 

Sanjay191_0-1726656830944.png

the output is like below as you can see 

Sanjay191_1-1726656915400.png

 

and if the charecter is more then 25 it will clear the value 


Please mark this response as correct or helpful if it assisted you with your question.
Thank You


View solution in original post

1 REPLY 1

Sanjay191
Tera Sage

Hello @BijoyDeb 
Please Refer the below  approch

write the onchange client script and put max charecter that we can put, write in  help test so that we can identify how much charecter we can put in this field 

Sanjay191_0-1726656830944.png

the output is like below as you can see 

Sanjay191_1-1726656915400.png

 

and if the charecter is more then 25 it will clear the value 


Please mark this response as correct or helpful if it assisted you with your question.
Thank You