Expand my Community achievements bar.

SOLVED

Character Limits for Text Fields

Avatar

Level 3

We need to limit the # of characters a requestor submits into a text field. Is that possible to do? Can Fusion help with that? TY

Topics

Topics help categorize Community content and increase your ability to discover relevant content.

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

I use a report to display the character counts where we need it limited for reporting purposes.

 

KellieGardner_0-1708536464151.png

 




View solution in original post

6 Replies

Avatar

Correct answer by
Community Advisor

I use a report to display the character counts where we need it limited for reporting purposes.

 

KellieGardner_0-1708536464151.png

 




Avatar

Community Advisor

displayname=Executive Brief Characters
textmode=true
valueexpression=IF(LEN({name of your field})>#,CONCAT("message you wan to display if it's over count: ",LEN({name of your field})," /# characters"),CONCAT(LEN({name of your field}),"/#"))
valueformat=HTML

 

 

Here is the code for the column I use. Enter the name of the field you want it to read and set your character count limit where the # sign is. If it's over the count I have it display a message, if it's not over the count it just displays the count with the number it can't go over (example: 200/372).

 

 




Avatar

Level 2

Hey Deborah - yes, Fusion could help with this. You could create a scenario that reviews requests as they are submitted and identifies fields that exceed your desired character limit. You could then do a couple of things with Fusion:

  • Tag the requestor in a status update asking them to refine their inputs and change issue status to something like "Requires Changes" so folks know to avoid working on that request
  • Remove any text beyond the character limit so you can continue working with the request

 

I think it depends on why you need the character limit. Is it for reporting or integration/ingestion purposes?

Avatar

Community Advisor

The above suggestions are all good ones. The hard answer to your question is no, you cannot limit how many characters the user types in. You can only affect the field after they've typed it in.

I believe the max character count is 4,000 for built-in fields and 2,000 for custom fields.

Avatar

Employee

You can add a calculated field that will do the trick:

 

 

IF(
    ISBLANK({DE:customFieldName}) || {DE:customFieldName} = "" || {DE:customFieldName} = "N/A",
    "Character Limit is 100 Characters",
    IF(
        LEN({DE:customFieldName}) > 100,
        " Exceeding Limit of 100 Characters",
        IF(
            LEN({DE:customFieldName}) <= 100,
            CONCAT(" ", LEN({DE:customFieldName}), " Characters"),
            "Character Limit is 100 Characters"
        )
    )
)