Expand my Community achievements bar.

SOLVED

Limiting Character Count in Text Field?

Avatar

Level 1

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

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

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-co...

 

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

 

 

 

 

 

 




View solution in original post

4 Replies

Avatar

Community Advisor

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 : )

Avatar

Level 1
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!

Avatar

Correct answer by
Community Advisor

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-co...

 

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

 

 

 

 

 

 




Avatar

Level 1

That makes sense, Kellie. Thanks so much!