[Custom Input Masks] How to add a non mandatory date?
Question
Forge component by Sara Gonçalves
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
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!

mvp_badge
MVP
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!

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

mvp_badge
MVP

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 

Demo.oml

mvp_badge
MVP

Hi Hasani,

Added a new version with this bug fixed.

Regards,

Marcelo

Hi Marcelo,

Thanks a lot, I will check it out

Hi, 


I'm having the same kind of problem with the latest version. Even the date field isnt mandatory, it throw the error that it's mandatory. 


Any suggestion to solve this problem? 

Thanks! 


Best regards, 

Ricardo M Pereira

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.