Custom Validation Not Working

Hi Guys,

Kindly guide me how to use the mindate, maxLength and minLength for the forms because its not working at all, I don’t if there are problem with Wix documentation or application. Tried using console.log and it’s showing the correct value but in the form it’s not working.

Thank you in advance.

Anthony

Hi Anthony ,

To be able to use min/max Date , you should define that value ( the max or min date you want ). Ex :

let today = new Date();
$w("#datePicker1").minDate = today; // Today's date is the minDate

Hope this helps!
Best,

Mustafa