Celebrate WordCamp Asia 2024 with 30% OFF! Use coupon WC30 - Terms

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.

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.

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.