We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c329e2b commit b17f78cCopy full SHA for b17f78c
1 file changed
content/script/frontendjs.js
@@ -105,8 +105,10 @@ var eduBookingView = {
105
document.querySelector('.contactMobile').value = cMobile;
106
var tCivReg = document.querySelector('.contactCivReg');
107
if (tCivReg) {
108
- if(this.ForceContactCivicRegNo) {
+ document.getElementById('edu-contactCivReg').required = false;
109
+ if(this.ForceContactCivicRegNo && contact == 1) {
110
tCivReg.required = true;
111
+ document.getElementById('edu-contactCivReg').required = true;
112
}
113
tCivReg.value = document.getElementById('edu-contactCivReg').value;
114
0 commit comments