- Mark as New
- Follow
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report
You have two options to do this..
1) Do not allow the user to use space bar to delete the text. That way you can make sure you will never have spaces created by spacebar.
You usually do this in the change event.
Niall has provided you the sample in the above response on how to do this.
2) Upon exiting the text field, you can remove any spaces in the front and back of the text in the TextField. For whcih I gave you the line of script you can use in the Exit event of the TextField.
If you have more fields that need the similar requirement, it is advisable to put the script in a script object and make a call to the function in the exit event.
Hope this helps.
Thanks
Srini
Views
Replies
0 Likes
Total Likes