From a46fdde1e560724db71972d70dc870213de8e985 Mon Sep 17 00:00:00 2001 From: Mathieu Lu Date: Thu, 23 Nov 2023 11:44:35 -0500 Subject: [PATCH] Recurring Activity: avoid validation if the fieldset is visible but not used --- templates/CRM/Core/Form/RecurringEntity.tpl | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/templates/CRM/Core/Form/RecurringEntity.tpl b/templates/CRM/Core/Form/RecurringEntity.tpl index 3949653a14..1a2f3bd6f1 100644 --- a/templates/CRM/Core/Form/RecurringEntity.tpl +++ b/templates/CRM/Core/Form/RecurringEntity.tpl @@ -213,6 +213,10 @@ previewDialog(); } } + else { + // Avoid jquery validation on required fields if they are visible + $('#recurring-entity-block :input').removeClass('required'); + } }); // Enable/disable form buttons when not embedded in another form -- 2.25.1