PC SOFT

FOROS PROFESIONALES
WINDEVWEBDEV y WINDEV Mobile

Inicio → WINDEV 2024 → [WB21] Skip Browser date control validation ?
[WB21] Skip Browser date control validation ?
Iniciado por guest, 07,jun. 2016 12:26 - 3 respuestas
Publicado el 07,junio 2016 - 12:26
Hi,

I have a page with some input controls. Two of these are optional date controls, They can be NULL/Empty if not used.

But when I link this to the control the moment your cursor gets in this field you cannot leave it without entering a valid non empty date ! There is allways a browser popup that said: The entered value is incorrect.

How can I prevent this from happening ? I want to handle my own validation when needed !

I say someone asking a related question a few weeks back, but can't seem to find that message.

Thanks
Danny
Publicado el 07,junio 2016 - 12:45
Hi Danny,

Make sure you've not made the controls mandatory. Also check the Analysis to make sure you are allowing nulls?
Publicado el 07,junio 2016 - 13:35
Darren,

Thanks for the reply ! I use OOP so everything is linked via classes to the database. The data control is linked to a data variable.

Both controls have the mandatory flag set to false.

Danny
Publicado el 08,junio 2016 - 08:30
Hello,

A workarround is to set the mask to HTML5, this way you have a date picker and it can be empty.

But the lay-out is different, So not ideale....

Danny