Handling a string with only blank space in required fields
When trying to submit a required textfield that just contains blank spaces. There comes an error message about invalid data that perhaps is difficult to understand for the common user.
The message is:
"Invalid use of null. The 'name' value cannot be set to null."
Perhaps a string with only spaces could be handled in the same way as an empty textfield/string.
Change History
(7)
Milestone: |
→ BASE 2.0 RC2
|
Owner: |
changed from Gregory Vincic to Nicklas Nordborg
|
Milestone: |
BASE 2.0 RC2 → BASE 2.0
|
Owner: |
changed from Nicklas Nordborg to Martin Svensson
|
Status: |
new → assigned
|
Resolution: |
→ fixed
|
Status: |
assigned → closed
|
I have added a JavaScript funtion to main library: Main.trimString() which trims a string from leading and trailing spaces.
Use like this: