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:
- Click Administration» Settings» Advanced.
- In the tree in the left, click News» Controls» NewsBackend» Views»NewsBackendEdit» Sections» MainSection» Fields» Title.
- Select TrimSpacescheckbox.
- 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.
Get started with Integration Hub | Sitefinity Cloud
This free lesson teaches administrators, marketers, and other business professionals how to use Sitefinity Integration Hub to create automated workflows between Sitefinity and other business systems.
Web Security for Sitefinity Administrators
This free lesson teaches administrators the basics about protecting your Sitefinity instance and your sites from external threats. Configure HTTPS, SSL, allow lists for trusted sites, and cookie security, among others.
Foundations of Sitefinity ASP.NET Core Development
The free on-demand video course teaches developers how to use Sitefinity ASP.NET Core and take advantage of its decoupled architecture and modern development model.