Hello,
As in the topic, I am trying to make custom field "FIELD" mandatory, when one of checkbox values is checked. There is one choice, for example: checkbox name: "Find C", values: [A, B, C, D, E, F]; When "C" is selected, "FIELD" becomes mandatory.
I think, I've got a problem with reffering to "C" value.
My code:
def wartosc = getFieldByName("Find C")
def sir = getFieldByName("FIELD")
//def wybor = getFieldByName("C")
if(wartosc.getValue() == "C"){
sir.setRequired(true)
}
Might anyone tell me, how can I resolve it? Please, help