diff --git a/app/assets/javascripts/application.js.erb b/app/assets/javascripts/application.js.erb index 01b1b41a7c4..6cafe05fc73 100644 --- a/app/assets/javascripts/application.js.erb +++ b/app/assets/javascripts/application.js.erb @@ -1065,7 +1065,7 @@ var submitInvisibleRecaptchaForm = function () { $(".npn_field").mask("9999999999"); $(".address-state").mask("AA"); $(".mask-ssn").mask("999-99-9999"); - $("#jq_datepicker_ignore_census_employee_dob, #jq_datepicker_ignore_person_dob, #family_member_dob_, #jq_datepicker_ignore_organization_dob, [name='jq_datepicker_ignore_dependent[dob]'], .date-field").mask("99/99/9999"); + $("#jq_datepicker_ignore_census_employee_dob, #jq_datepicker_ignore_person_dob, #family_member_dob_, #jq_datepicker_ignore_organization_dob,[name='jq_datepicker_ignore_dependent[dob]'], .date-field:not(#cancel-plan-date-picker)").mask("99/99/9999"); $(".area_code").mask("999"); $(".phone_number7").mask("999-9999"); $("#tribal_id").mask("999999999"); diff --git a/app/views/insured/group_selection/_cancel_plan_form.html.erb b/app/views/insured/group_selection/_cancel_plan_form.html.erb index 1635cd0a434..d5663039057 100644 --- a/app/views/insured/group_selection/_cancel_plan_form.html.erb +++ b/app/views/insured/group_selection/_cancel_plan_form.html.erb @@ -31,6 +31,7 @@ <%= label_tag :term_date, l10n("coverage_end_date"), class: "required"%> <%= date_field_tag :term_date, nil, { class: "date-field mt-2", + id: "cancel-plan-date-picker", min: TimeKeeper.date_of_record.strftime("%Y-%m-%d"), max: TimeKeeper.date_of_record.end_of_year.strftime("%Y-%m-%d"), required: true