Hi Experts,
I'm trying to show a custom field twice in a form.
Custom field1 is "Entity" (single-choice)
Field2 is, "Is this for another Entity?" (single-choice)
Then show the "Entity" field again on the screen.
Is there a way to this?
I'm using scriptrunner but it only works for a single field. Can I set this up to show the same field until the reporter selects No?
def cfA = getFieldById("customfield_ID1")
def cfB = getFieldById("customfield_ID2")
cfA.setHidden(false)
if (cfB.value == "No"){
cfA.setHidden(true)
cfA.setRequired(false)
}
else {
cfB.setHidden(false)
cfC.setRequired(true)
}