[CustomMasks] How to add a non mandatory date?

[CustomMasks] How to add a non mandatory date?

  
Forge Component
(17)
Published on 23 Sep (6 days ago) by Pedro Oliveira
17 votes
Published on 23 Sep (6 days ago) by Pedro Oliveira
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