-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathform_health.js
29 lines (24 loc) · 1.46 KB
/
form_health.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
whvutil.autoLoad(function(){
var renalDialysisSelect = document.getElementById("ctl00_ContentPlaceHolder1_medicalConditions_renalDialysisDropDownList");
var hasTBSelect = document.getElementById("ctl00_ContentPlaceHolder1_medicalConditions_tuberculosisDropDownList");
var hasCancerSelect = document.getElementById("ctl00_ContentPlaceHolder1_medicalConditions_cancerDropDownList");
var hasHeartDiseaseSelect = document.getElementById("ctl00_ContentPlaceHolder1_medicalConditions_heartDiseaseDropDownList");
var hasDisabilitySelect = document.getElementById("ctl00_ContentPlaceHolder1_medicalConditions_disabilityDropDownList");
var needHospitalisationSelect = document.getElementById("ctl00_ContentPlaceHolder1_medicalConditions_hospitalisationDropDownList");
var needResidentalCareSelect = document.getElementById("ctl00_ContentPlaceHolder1_medicalConditions_residentailCareDropDownList");
var pregnantSelect = document.getElementById("ctl00_ContentPlaceHolder1_medicalConditions_pregnancy_pregnancyStatusDropDownList");
var tbRiskSelect = document.getElementById("ctl00_ContentPlaceHolder1_medicalConditions_tbRiskDropDownList");
var no = "No";
renalDialysisSelect.value = no;
hasTBSelect.value = no;
hasCancerSelect.value = no;
hasHeartDiseaseSelect.value = no;
hasDisabilitySelect.value = no;
needHospitalisationSelect.value = no;
needResidentalCareSelect.value = no;
if(pregnantSelect){
pregnantSelect.value = no;
}
tbRiskSelect.value = no;
return true;
});