Solved

How to restrict number of characters in Multiline text field


Hi,



 



How to limit number of characters in multi line text field in NWC form?



 



Thanks,



Devendra

icon

Best answer by ghaiashish 14 June 2021, 03:27

View original

2 replies

Hi Davendra,



 



You can use form submit rule to show a validation error, steps below:





  • Create a variable using length function to get the number of characters on you multiline text control        example varCount = length(form.textlong1)








  • Create a submit rule to return validation error if variable exceeds desired limit






The result is 





Let me know if you gave any further questions



Regards,



Ashish

Badge +5
Hi Devendra,

The Text - Long control provides 2 options for Text format: Plain text and Rich text. If you select Plain text, you can use the Maximum number of characters configuration field to restrict the number of characters allowed. If you select Rich text, you can use a rule as @ghaiashish suggested.

Reply