Limited Single-line Text Field
A modification of Single-line Text, that allows to limit its length and that displays the amount of remaining characters. Can be configured to disallow further input once the limit is reached.
Configuration
The field is configured using a source field on a template.
Examples:
Setting the limit:
Limit=40
Setting the limit and disallowing input once the limit is reached (off by default): Examples:
Minimum and maximum only, anything between 1 and 200 can be selected, including floats.
Limit=40&PreventTyping=true
Note: when changing the character limit, make sure to also update the limit in the Sitecore maximum length validator that is assigned to the field (40 by default).
Usage
The field works exactly as single-line text in other regards.
Attachments
-
limitedtext.png
(2.2 KB) -
added by AlexeyRusakov 18 months ago.
Limited Single-line Text field
-
overthelimit.png
(2.4 KB) -
added by AlexeyRusakov 18 months ago.
Limited Single-line Text field - over the limit


