Hello,
Help solve the problem.
There are three radio button elements where the answers are Yes or No.
And there is a fourth element of the radio button, where the answer should become Yes, provided that the other three elements with the answer Yes. And if at least one answer is No, then the fourth element should become No.
In JavaScript, I can do it individually for each of the 3 elements.
var rbVal = this.form.formElements.get('Form___element1').getValue();
if (rbVal == '1') {
this.form.formElements.get('Form___element4').update('1');
}
else if (rbVal == '2') {
this.form.formElements.get('Form___element4').update('2');
}
Help solve the problem.
There are three radio button elements where the answers are Yes or No.
And there is a fourth element of the radio button, where the answer should become Yes, provided that the other three elements with the answer Yes. And if at least one answer is No, then the fourth element should become No.
In JavaScript, I can do it individually for each of the 3 elements.
var rbVal = this.form.formElements.get('Form___element1').getValue();
if (rbVal == '1') {
this.form.formElements.get('Form___element4').update('1');
}
else if (rbVal == '2') {
this.form.formElements.get('Form___element4').update('2');
}
Attachments
Last edited: