+// handleTaskRequiredCheckbox - controls visibility of the Task Required checkbox.
+function handleTaskRequiredCheckbox() {
+ var taskRequiredCheckbox = document.getElementById("task_required");
+ var taskRequiredLabel = document.getElementById("task_required_label");
+ var trackingModeDropdown = document.getElementById("tracking_mode");
+ if (trackingModeDropdown.value == 2) {
+ taskRequiredCheckbox.style.visibility = "visible";
+ taskRequiredLabel.style.visibility = "visible";
+ } else {
+ taskRequiredCheckbox.style.visibility = "hidden";
+ taskRequiredLabel.style.visibility = "hidden";
+ }
+}
+
+