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:

Character

Name / VariableAdditional Information
Count
#character_count
The total character count. For more information about this variable, click here. This variable can only be used in the Help setting for text based Fields.
Count Label
#character_count_label
Shows 'character' or 'characters' depending on the character count. For more information about this variable, click here. This variable can only be used in the Help setting for text based Fields.
Count Remaining
#character_remaining
If you set a maximum character length for a field, this will show the total remaining character count. For more information about this variable, click here. This variable can only be used in the Help setting for text based Fields.
Count Remaining Label
#character_remaining_label
If you set a maximum character length for a field, this will show the total remaining character count. For more information about this variable, click here. This variable can only be used in the Help setting for text based Fields.
Maximum
#character_max
Shows the maximum character length that you set for a field. For more information about this variable, click here. This variable can only be used in the Help setting for text based Fields.
Maximum Label
#character_max_label
Shows 'character' or 'characters' depending on the maximum character length. For more information about this variable, click here. This variable can only be used in the Help setting for text based Fields.
Minimum
#character_min
Shows the minimum character length that you set for a field. For more information about this variable, click here. This variable can only be used in the Help setting for text based Fields.
Minimum Label
#character_min_label
Shows 'character' or 'characters' depending on the minimum character length. For more information about this variable, click here. This variable can only be used in the Help setting for text based Fields.

Word

Name / VariableAdditional Information
Count
#word_count
The total word count. For more information about this variable, click here. This variable can only be used in the Help setting for text based Fields.
Count Label
#word_count_label
Shows 'word' or 'words' depending on the word count. For more information about this variable, click here. This variable can only be used in the Help setting for text based Fields.
Count Remaining
#word_remaining
If you set a maximum word length for a field, this will show the total remaining word count. For more information about this variable, click here. This variable can only be used in the Help setting for text based Fields.
Count Remaining Label
#word_remaining_label
If you set a maximum word length for a field, this will show the total remaining word count. For more information about this variable, click here. This variable can only be used in the Help setting for text based Fields.
Maximum
#word_max
Shows the maximum word length that you set for a field. For more information about this variable, click here. This variable can only be used in the Help setting for text based Fields.
Maximum Label
#word_max_label
Shows 'word' or 'words' depending on the maximum word length. For more information about this variable, click here. This variable can only be used in the Help setting for text based Fields.
Minimum
#word_min
Shows the minimum word length that you set for a field. For more information about this variable, click here. This variable can only be used in the Help setting for text based Fields.
Minimum Label
#word_min_label
Shows 'word' or 'words' depending on the minimum word length. For more information about this variable, click here. This variable can only be used in the Help setting for text based Fields.

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.