By Josh Lewis on Wednesday, 12 August 2015
Posted in Technical Issues
Replies 9
Likes 0
Views 1.2K
Votes 0
I finally decided to swap from allowing username spaces using the following regular expression code as mentioned by Jason Rey:

^[a-zA-Z0-9]+$


While it seems that the validation works, adding a space in the username does not give a valid reason for why the username is failing as seen here:



It says "Username must be at least 4 characters long". As you can see the username is more than 4 characters long. It's not just an issue with username spaces, special characters create the same result as seen here:



If it is too difficult for the system to detect invalid characters, the default message could say "Username must be at least 4 characters long or has invalid characters".
Hey Josh,

I am really sorry that delay of this reply,

I checked our issue tracker still under process, we will fix this in 1.4 version.
·
Wednesday, 19 August 2015 16:35
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks for the heads up on this! Will log this into our issue tracker By the way, since 1.4 is pretty near around the corner, we'll fix this in 1.4 instead
·
Wednesday, 12 August 2015 18:57
·
0 Likes
·
0 Votes
·
0 Comments
·
Mark wrote:

By the way, since 1.4 is pretty near around the corner, we'll fix this in 1.4 instead


Awesome, I'm patient for this. I looked at the roadmap a few days ago and had to tell Randall that I was excited to see ES 1.4 nearing completion. Seeing videos set to complete was the most exciting part.
·
Thursday, 13 August 2015 02:42
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey Josh,

I have been reviewing this and this is actually not an incorrect message. The message in the "Note" area is actually the "tooltip" or help section which describes more about the field
·
Thursday, 13 August 2015 19:04
·
0 Likes
·
0 Votes
·
0 Comments
·
The real error message is actually shown as you can see here, http://screencast.com/t/BIIyKIBS
·
Thursday, 13 August 2015 19:04
·
0 Likes
·
0 Votes
·
0 Comments
·
The real error message is actually shown as you can see here, http://screencast.com/t/BIIyKIBS
·
Thursday, 13 August 2015 19:36
·
0 Likes
·
0 Votes
·
0 Comments
·
You are correct, I missed that detail. Because the regular expression patterns are customizable to our own needs, I take it there is no easy way for a validation message to check what validation rule is being broken? For example if my validation rule does not allow special characters, could the note dynamically change or add extra text saying what regular expression rule is broken? While on my own ES installation I could just say "Does not allow special characters ect." there is a very good chance that many other EasySocial customers will run into the same problem. Especially with some folks using spaces in their name and using @ for their email address username. Just looking out for other ES folks.
·
Friday, 14 August 2015 03:11
·
0 Likes
·
0 Votes
·
0 Comments
·
Hm, but those are actually not validation messages instead they are tooltips and replacing the tooltips with validation messages are pretty confusing?
·
Friday, 14 August 2015 03:36
·
0 Likes
·
0 Votes
·
0 Comments
·
I agree that it could be confusing which is why I figured adding more text to it might be less confusing if the additional text is red. A better solution is making the tooltip message display the validation issue(s). The tooltip only displays when the validation fails, hence the only thing that can change with the tooltip is the error message when it does fail. Here's an example:



This method is less confusing to the user, and instructs the user on why they cannot proceed.
·
Friday, 14 August 2015 03:43
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post