I have a form where the data will be imported into a database, so we don't want the users to be able to allow spacing when they enter the data. Is there a way to do this?
Thanks, Anne
Views
Replies
Total Likes
Use below script
TextField2.rawValue = this.rawValue.replace(/\s\s+/gm,"");
Hope this helps
Vipin
Views
Replies
Total Likes
thanks. I put the script in "validate" and it won't allow me to enter anything. Should I be putting it somewhere else?
SampleRef.rawValue = this.rawValue.replace(/\s\s+/gm,"");
Views
Replies
Total Likes
I have uploaded the file where i have created 2 textfield. If you enter some text in textfield1 that contains space, it will display the same text in textfield2 without spaces.
Views
Replies
Total Likes
You can Filter the User Input while typing and delete spaces directly.
Add this Script to the change Event of a field.
xfa.event.change = xfa.event.change.replace(/\s/g, "");
Views
Replies
Total Likes
This worked perfectly. Thank you so much!
Views
Replies
Total Likes
Views
Likes
Replies
Views
Likes
Replies