FormField pro = getFieldByName("QA Status")
FormField ecp = getFieldByName("Reason")
String vpro = (String) pro.getFormValue()
String vecp = (String) ecp.getFormValue()
if (vpro == "Test in Product") {
ecp.setRequired(true)
}
else {
ecp.setRequired(false)
}I tryed to use getFieldByID but no luck.
please, help!
Thank you!