Add character counter for HTML fied in Catalog item

ashu1612
Tera Contributor

I am trying to create a catalog items with some HTML fields with restriction  of 300 characters minimum. Now I need to implement a character counter which tells users how many characters they have filled. could you please help me how to achieve this without affecting other html fields in system. I know there are some out of the box property but enabling them will affect all other html or multiline field in system. 

2 REPLIES 2

Tanushree Maiti
Kilo Patron

Hi @ashu1612 ,

 

Using the onChange catalog Client script, you can implement it.

Check this post :

https://www.servicenow.com/community/developer-forum/how-to-display-counter-for-number-of-characters...

 

https://www.servicenow.com/community/employee-center-forum/how-to-add-a-character-counter-and-limit-...

 

Please mark this response as Helpful & Accept it as solution if it assisted you with your question.
Regards
Tanushree Maiti
ServiceNow Technical Architect
Linkedin:

ashu1612
Tera Contributor

Thanks Tanushree but this is not working for me