Add trimming spaces for text field

You can configure Sitefinity CMS to trim the spaces before and after the text entered in the text field. The spaces are trimmed from the text when you move the focus out of the field.

You can configure to trim spaces in any field.

Following is an example of how to enable the character counter on the Titlefield of the Editdialog of the Newsmodule:

  1. Click Administration» Settings» Advanced.
  2. In the tree in the left, click News» Controls» NewsBackend» Views»NewsBackendEdit» Sections» MainSection» Fields» Title.
  3. Select TrimSpacescheckbox.
  4. Click Save Changes button.

If you click Content» Newsand choose to edit a news item and in the Titlefield, you enter some text with spaces before and after the actual value, when you leave the field the extra spaces are trimmed.

Want to learn more?
Enhance your Sitefinity skills by enrolling in free training sessions. Become Sitefinity certified through Progress Education Community to strengthen your professional credentials.
New to Sitefinity?