I'm trying to only show certain text fields dependent upon a certain Radio button selection. There are multiple options available and so only want to show the appropriate corresponding text field, when the radio button is selected.
Currently I have the below server-side script, against the Radio button field in ScriptRunner, but it is only currently looking for one of the multiple options.
def radioField = getFieldById(getFieldChanged()) // Get the radio button field
def dependentField = getFieldByName("Design Metallics - Hours") // The field to show/hide
if (radioField.getValue() == "Show") { // Adjust based on your option value
dependentField.setHidden(false) // Show the field
} else {
dependentField.setHidden(true) // Hide the field.
Snapshot of the fields in question:-