Skip to content
Snippets Groups Projects
Commit ba8c6767 authored by Piotr Gawron's avatar Piotr Gawron
Browse files

when brain donation is marked require next of keen information

parent 2346a660
No related branches found
No related tags found
1 merge request!230Resolve "next of keen"
Pipeline #23050 passed
...@@ -204,6 +204,11 @@ ...@@ -204,6 +204,11 @@
$("#confirm-dead-resigned-mark-dialog").modal("show"); $("#confirm-dead-resigned-mark-dialog").modal("show");
return false; return false;
} }
var brainDonation = $("#id_study_subject-brain_donation_agreement").is(":checked");
if (brainDonation && ($("#id_subject-next_of_keen_phone").val() === '' || $("#id_subject-next_of_keen_address").val() === '' || $("#id_subject-next_of_keen_name").val() === '')) {
alert("Next of keen data must be entered when brain donation agreement is in place");
return false;
}
}); });
$("#confirm-save").click(function () { $("#confirm-save").click(function () {
confirmed = true; confirmed = true;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment