Get a first look at what's coming. The Developer Passport Australia Release Preview kicks off March 12. Dive in! 

Real time or near real time character counter on catalog item html field

ashu1612
Tera Contributor

I am trying to implement a solution where on a catalog item there is html field. Users have to fill atleast 300 characters of it.

 

Now I have a requirement where as user types number of characters left is counted and displayed to user.

 

 

3 REPLIES 3

Ankur Bawiskar
Tera Patron

@ashu1612 

check this link and it has some approach which you can use and enhance

How to Add a Character Counter and Limit to Multi-line Text Field in Service Portal Catalog Item? 

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

Regards,
Ankur
Certified Technical Architect  ||  10x ServiceNow MVP  ||  ServiceNow Community Leader

No this piece is not working . I already tried that approach.

@ashu1612 

may be it's not working with HTML type variable.

Why not use string variable then?

Why would you require character count for HTML type variable?

HTML type variable holds html tags so the total of 300 characters will include the tags as well.

I think you should discuss with your customer and use String type variable

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

Regards,
Ankur
Certified Technical Architect  ||  10x ServiceNow MVP  ||  ServiceNow Community Leader