Why is max_length not working?

ServiceNow Use6
Tera Guru

Hi,

I have created max_length attibute to Description 5 on incident table, but it is not working. I don't want to use scripting, but why is it not working. Kindly help.

 

1.jpg

 

2.jpg

 

3.jpg

 

4.jpg

 

5.jpg

 

Regards

Suman P.

 

 

6 REPLIES 6

Nikhil Bajaj9
Giga Sage

Hi @ServiceNow Use6 ,

 

If my answer helped you, please mark it- solution accepted.

 

Regards,

Nikhil Bajaj

Please appreciate my efforts, help and support extended to you by clicking on – “Accept as Solution”; button under my answer. It will motivate me to help others as well.
Regards,
Nikhil Bajaj

Ct111
Giga Sage

Hello @ServiceNow Use6 ,

 

Your requirement of making description field only 5 looks fishy to me , as it violates OOB behaviour of task table.

 

Rather i would suggest you to create new field like incident_description with default string length of 40 and then go to the backend at the dictionary side and then adjust the length, it would then allow you to enter only 4 or 5 characters based on your setting.  Attached screenshots for your reference

 

Ct111_0-1755081860860.png

 

Ct111_1-1755081932934.png

 

 

I hope this helps, in this way you wont alter the OOB behaviour of task table , as well achieve your requirement.