Word and Character Counts

WS Form can add word or character counters to all types of text fields and in any format you wish.

Word and character counters are added to the help text setting of a field. The counter will then appear directly under the field on your website.

To determine how the word or character count is displayed, you simply add some WS Form variables in the help text setting of a field. To access the help text setting, click on the settings icon on a field. This will open the field settings sidebar on the right-hand side of the page. Look for the setting called ‘Help text’. It is in this field that you will enter your word or character count variables.

Word & Character Count Variables

The word and character count variables are as follows:

Name / VariableDescription
Character: Count
#character_count
The total character count.
Character: Count Label
#character_count_label
Shows 'character' or 'characters' depending on the character count.
Character: Count Remaining
#character_remaining
If you set a maximum character length for a field, this will show the total remaining character count.
Character: Count Remaining Label
#character_remaining_label
If you set a maximum character length for a field, this will show the total remaining character count.
Character: Maximum
#character_max
Shows the maximum character length that you set for a field.
Character: Maximum Label
#character_max_label
Shows 'character' or 'characters' depending on the maximum character length.
Character: Minimum
#character_min
Shows the minimum character length that you set for a field.
Character: Minimum Label
#character_min_label
Shows 'character' or 'characters' depending on the minimum character length.
Word: Count
#word_count
The total word count.
Word: Count Label
#word_count_label
Shows 'word' or 'words' depending on the word count.
Word: Count Remaining
#word_remaining
If you set a maximum word length for a field, this will show the total remaining word count.
Word: Count Remaining Label
#word_remaining_label
If you set a maximum word length for a field, this will show the total remaining word count.
Word: Maximum
#word_max
Shows the maximum word length that you set for a field.
Word: Maximum Label
#word_max_label
Shows 'word' or 'words' depending on the maximum word length.
Word: Minimum
#word_min
Shows the minimum word length that you set for a field.
Word: Minimum Label
#word_min_label
Shows 'word' or 'words' depending on the minimum word length.

Examples

Here are some examples of how these variables can be used in the help text setting.

#character_count #character_count_label
Example output: 123 characters

#word_count #word_count_label
Example output: 12 words

#word_count #word_count_label (Maximum: #word_max #word_max_label)
Example output: 1 word (Maximum: 12 words)

You have #word_remaining #word_remaining_label remaining.
Example output: You have 5 words remaining.