AnsweredAssumed Answered

How do you limit the amount of characters displayed on a list view field?

Question asked by bmccarthy on May 27, 2014
Latest reply on May 28, 2014 by Jeroen Somhorst
I've found this old thread and would like to know how to create the hook that calls on this function...what precisely do I need to do?

function limitListFieldChars(&$bean, $event, $arguments) {
        if (strlen($bean->name) > 100)
            $bean->name = substr($bean->name, 0, 100) . ' [...]';
        
    }  

Outcomes