Limesurvey 3 Character Count Demo Survey
Caution: JavaScript execution is disabled in your browser or for this website. You may not be able to answer all questions in this survey. Please, verify your browser parameters.
Character Count Examples
This sample survey shows how to count the number of characters entered at a text field by using the strlen() function of the Limesurvey Expression Manager.

Please enter some text.

At question settings -> Input -> "Maximum characters" we have limited the input to 160 characters.

To count the number of character use the following code snippet (remove blanks after having copied the code):

{ strlen(self.NAOK) }

You have entered 0 of 160 characters.

This is just another question of type "text display". It can be used to show the number of characters entered at the previous question by using this expression (remove blanks when copying the code):

{ strlen(textquestion.NAOK) }

Example: You have entered 0 characters.