Limiting Character Count in Text Field? | Community
Skip to main content
TimBaker
Level 2
February 19, 2025
Solved

Limiting Character Count in Text Field?

  • February 19, 2025
  • 3 replies
  • 819 views

Does anyone know if we can set a character limit in text fields? I don't currently see that function. Thank you.

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 KellieGardner

You cannot change the character limits on fields. There are some ways to report on them though.

 

Here are some examples of adding calculated fields to custom forms https://experienceleaguecommunities.adobe.com/t5/workfront-questions/resrict-data-field-character-counts/m-p/618866#M56154

 

I've also created text mode columns in reporting that will show this as well:

displayname=Column Name valueexpression=CONCAT(LEN({description}),"/max character") valueformat=HTML

Or Display a message:

displayname=Column Name valueexpression=IF(LEN({your field name})>100,"This is too long",CONCAT(LEN({your field name}),"/your max character count")) valueformat=HTML

 

 

 

 

 

 

3 replies

Madalyn_Destafney
Community Advisor
Community Advisor
February 19, 2025

Hi there, this article has what you're looking for I believe! This shows the limits but to answer your question, you cannot modify the limits.

If this helped you, please mark correct to help others : )
TimBaker
TimBakerAuthor
Level 2
February 20, 2025
Thanks for your reply, Madalyn! 
But my question was regarding setting our own character limit on a particular text field. E.g., having a text field in our custom form that only allows up to 20 characters, or something similar. Thanks anyway!
KellieGardner
Community Advisor
KellieGardnerCommunity AdvisorAccepted solution
Community Advisor
February 19, 2025

You cannot change the character limits on fields. There are some ways to report on them though.

 

Here are some examples of adding calculated fields to custom forms https://experienceleaguecommunities.adobe.com/t5/workfront-questions/resrict-data-field-character-counts/m-p/618866#M56154

 

I've also created text mode columns in reporting that will show this as well:

displayname=Column Name valueexpression=CONCAT(LEN({description}),"/max character") valueformat=HTML

Or Display a message:

displayname=Column Name valueexpression=IF(LEN({your field name})>100,"This is too long",CONCAT(LEN({your field name}),"/your max character count")) valueformat=HTML

 

 

 

 

 

 

TimBaker
TimBakerAuthor
Level 2
February 20, 2025

That makes sense, Kellie. Thanks so much!

Level 3
May 9, 2025

I used this one for a field limitation in custom forms:
IF(
    LEN({DE:NAMEOFFIELD}) > 65,
    "Error: Text exceeds 65 characters")