What is the easiest way to show or hide a field (A) based on what the value is in another single select field (B) ? I used to put something in the field configuration scheme on the single select field A but that no longer seems to work.
We have Scriptrunner and so I was trying to use a behaviour but the field does not appear at all and I cannot find a dummies guide to walk me through this example. So far I have:
def fieldIsBMTheLM = getFieldById("customfield_30450") <---- B
def fieldBookingManager= getFieldById("customfield_30551") <------ A
def bookingManagerRequired = fieldIsBMTheLM.getValue();
if (bookingManagerRequired == "No") { //No
fieldBookingManager.setHidden(false)
}
else {
fieldBookingManager.setHidden(true)
}
Many thanks!