[Logo] Enterprise Client Community
  [Search] Search   [Recent Topics] Recent Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
Regexmode=0 does not show error message  XML
Forum Index -> Development
Author Message
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
CaptainCasa

Power User
[Avatar]

Joined: 21/11/2007 12:23:06
Messages: 5519
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... ;-)
[Thumb - 2023-08-07 10_15_35-Regular Expressions.png]
 Filename 2023-08-07 10_15_35-Regular Expressions.png [Disk] Download
 Description
 Filesize 85 Kbytes
 Downloaded:  78 time(s)


Björn Müller, CaptainCasa GmbH
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
CaptainCasa

Power User
[Avatar]

Joined: 21/11/2007 12:23:06
Messages: 5519
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
heyl

Power User

Joined: 10/01/2008 09:41:55
Messages: 267
Location: Ettlingen
Offline

"misleading"

Thanks a lot!
 
Forum Index -> Development
Go to:   
Powered by JForum 2.1.6 © JForum Team