How to calculate numbers of characters in a text box, and to make sure it is not lesser than or greater than a specific amount of numbers?


You would do show custom error when:

=(TextBox < 150 and TextBox > 350)

I believe you need to have text for the error or it won't work.

"Please use between 150 and 350 characters."


You have two options. The first involves creating a custom error that checks the length of the string. The second involves using the settings for a text field which includes a minimum and maximum text length for the field.

I am an Engineer on the Cognito Forms team

  • I don't know to do this, – Abayomi Aug 20 '17 at 8:04
  • What I mean was, in a multiple text box, if a text characters length is below 150, it should show error, and if it is more than 350 characters, it should show error as well, that is minimum of text required is 150 and maximum is 350. How do I place a calculation box for the multiple text box? Regards – Abayomi Aug 20 '17 at 8:07

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.