Hello!
I am creating an application process in Forms. For the Employment history section, I need to restrict the Start Date and the End Date for each employment history item that is entered. I am effectively utilizing the following code:
$(document).ready(function(){
function updateMinimumEndDate () {
var minimum = $('.startdate input').val();
var minSplit = [];
minSplit = minimum.split("/");
var newMin = (minSplit[2]+"-"+minSplit[0]+"-"+minSplit[1]);
$('.enddate input').attr('min',newMin);
}
$('.startdate input').change(updateMinimumEndDate);
});
The problem is though, I am utilizing the aspect of forms that allows you to repeat a Collection. Therefore, when an applicant clicks "Click here to add another Employer" it will repeat the fields for the Employment History. At this point, the code above no longer restricts the End Date from being before the Start Date on subsequent entries. Any ideas on how to remedy this?
I really appreciate any help!