Hi,
I've been searching for how to hide the "Submit" button on a form if the date is within 3 days of the current date and haven't found anything that works for my situation. right now I have this:
$(document).ready(function() {
var $submit = $('.Submit');
$submit.hide();
$("#Field6").on("change", function() {
if ($(this).val() == " don't know what would go here..."){
$submit.show();
} else {
$submit.hide();
}
});
});
(Field 6 is Appointment Date)
What we're trying to say is, you can't cancel the appointment if it's within 72 hours (3 days) from the current date.