Truncating text fields in Collection output displays

Disconnect the text field from the database

Look carefully at Line 7 of your code, change $item(“#firstName”).text to this $item(“#text45”).text

Note that your text size is already 5 characters and you are trimming it to 5 characters so you won’t see a change, to test it i suggest you increase the number of characters in your database