
Announcements
I am trying to set a min & max date on a date picker
I have put this is custom JavaScript of the localization page for my form
$(document).ready(function() {
$("#rd_projectdate").next().data("DateTimePicker").minDate(moment());
});but I end up with this error
I get the same result with maxDate
Hi @Jeff_ccs
I have tested this. I am not facing any errors. Try with the console log
$(document).ready(function () {
console.log(555, "RR Testing min date ");
$("#cr55ce_firstvaccinedate").next().data("DateTimePicker").minDate(moment());
});
Once you add the above code in your localization advanced > Custom javascript section. Hit save and close.
Important step:
In Portal studio
1. Pres sync configuration and browse the website. And press "Ctrl+F5"
Hope it helps.
------------
If you like this post, give it a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users to find it.