How to set maximum character limit in HTML field in ServiceNow

ramesh_r
Mega Sage

Hi All,

We have Max length condition for the normal field.

 

find_real_file.png

 

But I want to do the same character restrictions on the HTML field also please help me with this

Please guide with any alternative way also apport from on submits a script

 

find_real_file.png

 

Thanks

Ramesh R

 

 

5 REPLIES 5

Ankur Bawiskar
Tera Patron

Hi,

We cannot set as that is not allowed OOB.

refer this link and read

Fields in ServiceNow accept string inputs greater than the sys_dictionary max_length value

Max Length on Large String Fields in ServiceNow

Regards
Ankur

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

@ramesh.r 

Hope you are doing good.

Did my reply answer your question?

If so, please mark appropriate response as correct & helpful so that the question will appear as resolved for others who may have a similar question in the future.

Thanks!
Ankur

 

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

@ramesh.r 

Hope you are doing good.

Did my reply answer your question?

If so, please mark appropriate response as correct & helpful so that the question will appear as resolved for others who may have a similar question in the future.

Thanks!
Ankur

 

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

Pradeep Sharma
ServiceNow Employee

Hi Ramesh,

The only way to work around this HTML limitation is to set up a client script to limit the number of characters allowed.

https://servicenowguru.com/scripting/client-scripts-scripting/maximum-length-large-string-fields-ser...