Add Char limit validation for custom field | Community
Skip to main content
Level 3
March 13, 2025
Solved

Add Char limit validation for custom field

  • March 13, 2025
  • 3 replies
  • 812 views

Hi Team, 

 

My use case is to add the char limit to the single line text. I don't see any OOTB option available.

 

Any thoughts on this??

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 hnalbandyan

Well, yes. 
Let me rephrase: Why do you want to limit the characters a user can enter?


I can see the question has an accepted answer, but I am happy to let you know that with the release of 25.10 you can achieve this via Custom Field Validations. You can even show the number of characters that are over the limit in the error message. A good example of it can be found under this discussion. Hope this helps.
https://experienceleaguecommunities.adobe.com/t5/workfront-discussions/validation-logic-in-custom-forms/m-p/744949/page/2

3 replies

Sven-iX
Community Advisor
Community Advisor
March 13, 2025

There is no such functionality. You have 2 options

  • Alert the user by placing a calculated field that shows an error message in case of exceeding the limit (this won't keep the user from submitting though)
  • Use Fusion to handle after submission (ie, truncate the value, send notification, or undo the change.

What's the use case that you want to constrain the char limit?

Level 3
March 13, 2025

Thanks for the relay.

 

We are using the field to fill out some text in the form. 

Sven-iX
Community Advisor
Community Advisor
March 13, 2025

Well, yes. 
Let me rephrase: Why do you want to limit the characters a user can enter?

Srinija_N
Level 7
March 13, 2025

There are the character limits that do exist on certain things in Workfront.

If you just looking for char limit on the Report view, you can do that on column text mode on your custom field.


valueexpression=CONCAT(LEFT({DE:XYZ},100),"...")

If you find this helpful, please mark this as 'Correct Reply' to help others. Thanks!!

Doug_Den_Hoed__AtAppStore
Community Advisor
Community Advisor
March 17, 2025

 

Hi @sateeshkreddy,

 

This request has been around for a long time, but your particular thread led me to a new possible solution (untested):

 

  • provided you are on the Ultimate licensing plan
  • using the (then included) Business Logic
  • having confirmed that custom parameters are supported
  • it might be possible to create a business rule that prevents saving a value beyond some maximum desired length (e.g. LEN({DE:MyText} <> LEFT({DE:MyText},100), with a warning to the user explaining that they must reduce it accordingly

 

Even if this approach is technically possible, I do also wonder if it would be acceptable to end users compared to other text count conventions they might be familiar with and prefer -- e.g. as they get close to the limit, seeing 3, 2, 1, 0, -1 (RED!), -2, etc. without having to hit Save to find out.

 

Still, if you (or anyone) decide to pursue it, I'd be interested to hear how it goes.

 

Regards,

Doug