Word and Character Counts in Help Text

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.

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 do this:

  1. Click on the settings icon on a field.
  2. Enter the word and/or character count variables to the Help Text setting.
  3. Click Save & Close.

WS Form - Adding Character and Word Counts to Help Text

Examples

Here are some examples of how these variables can be used in the Help Text setting.

#character_count #character_count_label / #word_count #word_count_label
Example output: 15 characters / 3 words

#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.

Word & Character Count Variables

The word and character count variables are as follows:

Character

VariableNameDescriptionUsage
#character_countCountReturns the total character count. For more information about this variable, click here.
#character_count_labelCount LabelReturns 'character' or 'characters' depending on the character count. For more information about this variable, click here.
#character_maxMaximumReturns the maximum character length that you set for a field. For more information about this variable, click here.
#character_max_labelMaximum LabelReturns 'character' or 'characters' depending on the maximum character length. For more information about this variable, click here.
#character_minMinimumReturns the minimum character length that you set for a field. For more information about this variable, click here.
#character_min_labelMinimum LabelReturns 'character' or 'characters' depending on the minimum character length. For more information about this variable, click here.
#character_remainingCount RemainingIf you set a maximum character length for a field, this will return the total remaining character count. For more information about this variable, click here.
#character_remaining_labelCount Remaining LabelIf you set a maximum character length for a field, this will return the total remaining character count. For more information about this variable, click here.

Word

VariableNameDescriptionUsage
#word_countCountReturns the total word count. For more information about this variable, click here.
#word_count_labelCount LabelReturns 'word' or 'words' depending on the word count. For more information about this variable, click here.
#word_maxMaximumReturns the maximum word length that you set for a field. For more information about this variable, click here.
#word_max_labelMaximum LabelReturns 'word' or 'words' depending on the maximum word length. For more information about this variable, click here.
#word_minMinimumReturns the minimum word length that you set for a field. For more information about this variable, click here.
#word_min_labelMinimum LabelReturns 'word' or 'words' depending on the minimum word length. For more information about this variable, click here.
#word_remainingCount RemainingIf 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.
#word_remaining_labelCount Remaining LabelIf 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.