The char_remain
template adds a JavaScript module to a textbox
question, displaying the remaining characters until the maximum is reached.
Details
- To use
char_remain
, include thetemplate
tag in the question setup. - The
char_remain
template works on singletextbox
questions, not tables. - To establish a maximum number of characters, apply the
maxlength
tag. If no maximum is specified, the default is 5000 characters. - Parameters can be added to customize the messages displayed to respondents by using the
template_data
tag.
Parameters
The following parameters can be used with the template data tag.
Parameter | Description |
remain_text |
Customizes the message displayed on screen. The following placeholders are used to insert the remaining count.
|
remain_one |
Replaces the singular term "character" with the word "letter," "number," or "space." |
remain_multiple |
Replaces the plural term "characters" with the word "letters," "numbers," or "spaces." |
Additional examples
In the example below we use the template_data
tag to apply parameters and change the default message displayed to respondents. Instead of saying "characters left to use," it is more specific and states "letters, numbers, or spaces left to use."
Comments
0 comments
Please sign in to leave a comment.