de exclude leave types
                specificLeaveGroup.style.display = 'block';
                excludeLeaveGroup.style.display = 'none';

                // Check if specific leave field is empty
                if (!specificLeaveField.value.trim()) {
                    // If empty, set required attribute to specific leave field
                    specificLeaveField.setAttribute('required', 'required');
                } else {
                    // If not empty, remove the required attribute
       