Forum Discussion
Jakob Rohde
Oct 19, 2016Copper Contributor
How to remove all spaces from a string?
Hi
In a SharePoint list I have a text field called "URL" and I want to make sure that whatever is entered in this field is automatically cleared of any spaces (" my url" is converted to "myurl"). Is this possible?
Thanks
Jakob
1 Reply
I would use column validation. Making it impossible for users to enter spaces:
http://techtrainingnotes.blogspot.co.uk/2015/10/sharepoint-column-validation-examples.html
The user can then decide to go for myurl or my_url or whatever they prefer.