Skip to main content
Nintex Community Menu Bar
Solved

How to restrict number of characters in Multiline text field

  • June 13, 2021
  • 2 replies
  • 656 views

Hi,

 

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

 

Thanks,

Devendra

Best answer by ghaiashish

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

2 replies

ghaiashish
  • Answer
  • June 14, 2021

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


Nintex_Andrea
Nintex Employee
Forum|alt.badge.img+5
  • Nintex Employee
  • June 14, 2021
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.