If you are passing data to another application using a PHP customization you can easily trim the values. If you are passing it via the query string then it's a bit more of an issue. It appears we aren't trimming spaces on the values. But we probably should so i'll create a ticket for it. Now there MAY be technical reasons why it does not do so automatically, so while i'll create a ticket for it… it's not a 100% guarantee that it'll be applied globally.
But if you're not passing data to another application via PHP and can't simply trim the value then, you could definitely do it when the form is submitted. Get the existing field value, trip the extra spaces, store the value. So it could be done as a customization until we implement it as default behavior.
It's never done it and in 4+ years this is the first time it's come up. Which surprises me. But it's the first time someone has asked about it. Is this something you'd need help writing a code snippet for?
Posted 11 years ago on Monday June 10, 2013 |
Permalink