Skip to main content
Participant
July 19, 2022
Answered

Limit alphanumeric characters for a field? Custom Expression?

  • July 19, 2022
  • 2 replies
  • 565 views

I want to limit characters for different fields.  I tried doing a combination of text and alphanumeric string validations, but it wouldn't validate correctly when testing the form if I added spaces between words, so now I am trying to do it with a custom expression, but that isn't working either.  I saw something similiar to the syntax below on another post, but it isn't working for me.  The format below is what I am using.  What am I doing wrong? Also, do I need to add 'signer1', 'signer2', or 'anyone' to validate the signer or does that take care of itself by who I assign the field to in the options box? Lastly, do I need to change the syntax below for text string vs alphanumeric string?

 

{{fieldname_es_:string(maxlen=30)}}

This topic has been closed for replies.
Correct answer martino1

 

So this was a simple solution.  I am providing a screenshot for anyone who has this question.

2 replies

Participant
January 11, 2023

Is the dollar sign required?  If I just want a character max is that the text needed to make this work?  Does anyone know how to have a character minimum and maximum to ensure the number of digits collected is correct?  for example, routing numbers must be 9 digits.

martino1AuthorCorrect answer
Participant
July 20, 2022

 

So this was a simple solution.  I am providing a screenshot for anyone who has this question.