function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Praveen Kumar R 6Praveen Kumar R 6 

How to avoid multiple white spaces entered for a text field?

Hi,

As far as I know Salesforce UI trims the multiple white spaces between the words of a text field. But I can still see them in the edit page of the record. How to avoid continuous multiple white spaces while saving a record itself? 

Also, the UI trims the field value, Is that the same value saved in database?