Limit number of characters a field will accept

Oscar Ward shared this question 3 years ago
Answered

i have a form simulation but i want to set max lenghts on various fields. Say one field should only accept upto 6 characters max another must only accept 2 and another a max of 10 characters. Is this possible with JIM, your reg expressions are for specific types of inputs like email or phone etc. Those cant be used for what i need. I just want to set a max length for generic inputs

Comments (3)

photo
1

Dear Oscar,


The following example should help.


Kindly let me know how it goes.


Best,


Sonia Durán

photo
1

Thanks, Sonia,

I too had the same question. This condition worked fine!

photo
1

I would suggest adding this feature as a property of the input text field component itself, rather than creating an action for it.