Turning on character count on single line text fields

samadam
Kilo Sage

Is there a way to turn on character limits on single line text fields? I have a requirement to limit the number of characters but dont want to change the fields length as it may truncate existing records so looking to see if I can turn on character count and then have a client script.

1 REPLY 1

Harish KM
Kilo Patron
Kilo Patron

Hi @samadam as far as i know character count is used for journal and multi line fields,

here you can define a regex under variable validation regex module and use it on your variable like below

 

Regex : ^[A-Za-z\s]{0,10}$ // limit up to 10 characters including spaces

HarishKM_0-1712199649151.png

HarishKM_1-1712199689639.pngHarishKM_2-1712199697048.png

 

 

Regards
Harish