Copy link to clipboard
Copied
I have two similar questions;
1. I would like to make fields in my form required based on the value entered in another field. i.e. field a > 10 then field b is required
2. Alternately, I would like to make field d required if there is any value in field c
Thank you ahead of time for your help.
As the custom validation of field "a" enter:
this.getField("b").required = Number(event.value)>10;
As the custom validation of field "c" enter:
this.getField("c").required = (event.value!="");
Copy link to clipboard
Copied
As the custom validation of field "a" enter:
this.getField("b").required = Number(event.value)>10;
As the custom validation of field "c" enter:
this.getField("c").required = (event.value!="");