This project has moved. For the latest updates, please go here.

Leading/Trailing Spaces

Oct 27, 2011 at 7:43 PM

Just wondering how I can trim leading/trailing spaces from the list field when comparing. I did not put in a validation on input for the field, so users naturally put in spaces where they don't belong. Right now the unique function counts leading/trailing in the match.

Oct 27, 2011 at 7:52 PM

What function are you asking about?

Oct 27, 2011 at 7:53 PM



Oct 28, 2011 at 11:13 AM
Right now, there's nothing in the function to do that. If you think about it, though, if your users are playing games to come up with unique values and you trim spaces, they will just come up with a new trick.

Oct 31, 2011 at 1:21 PM

I think they are cutting/pasting and not really paying attention. Can you add this to the function and activate using a parameter(i.e. ignoreLTSpace: true)?