Add character limit in text field | Community
Skip to main content
Level 4
May 17, 2024
Solved

Add character limit in text field

  • May 17, 2024
  • 2 replies
  • 1038 views

How can we add a character limit in our text fields? Is this even possible?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by lgaertner

Hi,

 

unfortunately that is not possible. Having limitation and validation possibilities on custom fields would be something really, really helpful.

 

Perhaps you can create another idea for this, to give a hint to Adobe.

 

Regards

Lars

2 replies

lgaertner
lgaertnerAccepted solution
Level 9
May 17, 2024

Hi,

 

unfortunately that is not possible. Having limitation and validation possibilities on custom fields would be something really, really helpful.

 

Perhaps you can create another idea for this, to give a hint to Adobe.

 

Regards

Lars

AndyKent
Level 2
May 17, 2024

@stan255 

 

I needed something similar recently but had to just fall back on the LEN({value}) expression in another field which gave the user an idea of how many characters they were using.

Not really a fix but guided the requester.

 

Andy

stan255Author
Level 4
May 20, 2024

Hey @andykent, this is a good workaround. Is it possible to add an IF statement into the LEN function?

For example, if LEN > 10, add text "Too long". If LEN < 4, add text "Too short".

AndyKent
Level 2
May 20, 2024

Sure, you could try:

IF(LEN({name}) <40, "Good!", "Too Many!")
 
'<40' being the character limit although you may want to play around with this as 41 may be the number you need to return the desired result.