Counter message token always 0

0
When I want to show the actual number of characters used and the maximum number of characters in a text area, I use the property ‘Counter Message’ with the tokens intended, {1}/{2} (1 – nr of characters used, 2 – maximum number of characters (derived from max length of attribute). However, the first token always starts at 0 when opening the page, and only when actually editing the field (it starts being uneditable, then with a button press can be set to editable in the app I'm working on) the counter will show the actual number of characters already used.  Is there a way I can make it show the correct amount of characters from the start?
asked
1 answers
0

As an alternative you can calculate the length yourself for that attribute if you need this amount. Use the function lenght(): https://docs.mendix.com/refguide/string-function-calls#length

answered