Author |
Message |
26/06/2014 09:45:48
|
pstich
Active
Joined: 27/04/2012 07:43:18
Messages: 9
Offline
|
Hello,
We are using a TextField which we want to validate via „regex“.
We don‘t want the warning-message described in http://www.captaincasademo.com/forum/posts/list/1931.page because our Regex is very long and the user will not understand it.
And we want that the Text is not deleted (previous valid value restored) when the user entered invalid text and the focus returns to the window/Textfield.
So we set „regexmode“ to 0.
Now the TextField turns red when the Regex is violated and no warning-message is displayed.
Observed: when we continue the input is not validated again. So the user can continue with invalid input.
Expected behavior: the user can not continue with input that does not comply with the Regex.
Is this an error or are we doing things wrong?
We use version „eclntjsfserver-5_0_20131216_3.jar“.
Regards,
Simon
|
|
|
26/06/2014 11:13:27
|
CaptainCasa
Power User
Joined: 21/11/2007 12:23:06
Messages: 5526
Offline
|
Hi,
@warning message: OK, we can make some option to not show it... Not for next update, but it's on the list (2-3 weeks)
@user can continue input: well, that's the difference between mode "0" and "1"; with "0" we give some visual feedback, but the logic on server side must be prepared to receive values that do not correspond to the regex. With "1" we enforce correct input, but if the user enters wrong input we only have the option to reset the value to the last good one... I do not see many more options how to behave here... (?)
Regards, Björn
|
Björn Müller, CaptainCasa GmbH |
|
|
|