[Custom Masks] How to add a non mandatory date?

[Custom Masks] How to add a non mandatory date?

  
Forge Component
(24)
Published on 19 Sep (3 days ago) by Marcelo Ferreira
24 votes
Published on 19 Sep (3 days ago) by Marcelo Ferreira
In a form when I have a non mandatory date that isn't filled, the error "Date expected!" is returned for that field! Using [ ], the error isn't displayed but the form doesn't submit.

The only way I found to submit the form without any errors is to check if that field as a null date, and if it has, then set the form widget to valid and clear the error message.

Is there any other way?

Thks
Couldn't you set the input field's type to Text?
Solution

Hello Lucendria,

I just uploaded a new version where this behavior is fixed.

Let me know if you have other issues using the component.


Thank you!

Solution

This is still/again an issue.

When debugging, the widget holds the mask in the "typedvalue", even when we didn't even go near the widget. Off course, it's easily fixed by checking the value on submit, but that's far from a clean solution.

Was a solution to this issue ever released?

I am having this same problem right now

Hi Hasani,

Which version of the component are you using? Can you share an oml with your problem?

Regards,

Marcelo

Hi,

I am using the latest version. See attached demo oml file 

Hi Hasani,

Added a new version with this bug fixed.

Regards,

Marcelo

Hi Marcelo,

Thanks a lot, I will check it out