Author |
Message |
07/08/2023 08:06:14
|
heyl
Power User
Joined: 10/01/2008 09:41:55
Messages: 267
Location: Ettlingen
Offline
|
Hi,
regexmode=0 does not show an error message as the doc says, at least how I understood it: "Component shows error, value is kept".
I expected it would show the error message, but keep the old value with red background, so that the user can edit it instead of re-typing everything.
Instead the component just accepts the value when I focus another field.
Reproducible with demo workspace, demo "Regular Expressions".
Best regards
Frauke
|
|
|
07/08/2023 08:21:14
|
CaptainCasa
Power User
Joined: 21/11/2007 12:23:06
Messages: 5535
Offline
|
Hi Frauke,
during input the field is shown in error mode (red underlining + error image) if the input does not match. Regular expressions are always "only" checked during input - this is the behavior since 2007.
Kind regards! Björn
PS: we can always talk about some new mode... ;-)
|
Filename |
2023-08-07 10_15_35-Regular Expressions.png |
Download
|
Description |
|
Filesize |
85 Kbytes
|
Downloaded: |
117 time(s) |
|
Björn Müller, CaptainCasa GmbH |
|
|
07/08/2023 08:34:08
|
heyl
Power User
Joined: 10/01/2008 09:41:55
Messages: 267
Location: Ettlingen
Offline
|
Hi Björn,
thanks for the info - ah, yes, now I think I remember we already talked about it many years ago
Still if I could have a new regexmode with the same behavior as mode 1, except not switching back to the old value, please, I (and our customers) would be more than happy.
Also maybe the description of mode 0 is not quite exact, it it a little missleading.... but in the demo it says
"REGEXMODE = 0 (default - invalid input values are accepted)", which is very precise, I must admit! Maybe you can add this to the component doc as well.
Best regards
Frauke
|
|
|
07/08/2023 09:01:23
|
CaptainCasa
Power User
Joined: 21/11/2007 12:23:06
Messages: 5535
Offline
|
...I like your word "missleading"...
So a REGEXMODE like this is do-able, of course. Will add it to our item list. Cannot promise for this week, but +2 week's version should be enough rime.
If you require it faster, please contact me directly!
Kind regards! Björn
|
Björn Müller, CaptainCasa GmbH |
|
|
07/08/2023 09:17:10
|
heyl
Power User
Joined: 10/01/2008 09:41:55
Messages: 267
Location: Ettlingen
Offline
|
"misleading"
Thanks a lot!
|
|
|
|