[Custom Masks] Date text field Defaulting to current date.

[Custom Masks] Date text field Defaulting to current date.

  
Forge Component
(22)
Published on 7 Mar by Jogait
22 votes
Published on 7 Mar by Jogait

I have a text field that accepts user to type in their DOB and the mask is set to MM-DD-YYYY. However when the page loads the field does not display MMDDYYYY but displays today's date. How can I force the mask to be displayed instead of today?

Solution

Hi David,

I tried the CustomMasks component and let me know if you're filling the default value (CurrDate()) of the variable used on that input. In this CustomMasks Example you can see the same thing as you described above. So here's my example without default value (CurrDate()) filled over the variable.

Regards,

João Alexandrino

Solution