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?
Hi @Ray Navarro , Welcome
You can try to add a third field called "Show Entity" which will be hidden or shown based on the value of the "Is this for another Entity? " field. If "Yes" is selected, the "Show Entity" field will be shown which is a duplicate of the "Entity" field. Otherwise, the "Show Entity" field will be hidden.
def cfEntity = getFieldByName("Entity")
def cfAnotherEntity = getFieldByName("Is this for another Entity?")
def cfShowEntity = getFieldByName("Show Entity")
cfEntity.setHidden(false)
cfAnotherEntity.setHidden(false)
cfShowEntity.setHidden(true)
if (cfAnotherEntity.getValue() == "Yes") {
cfShowEntity.setHidden(false)
} else {
cfShowEntity.setHidden(true)
}
Thanks! It looks like we need to create a separate field. I found my way thru checkbox field.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Ray Navarro and welcome to the community,
No, it's not possible to show the same field twice on a screen. May I ask what is it you want to achieve by showing the same field twice?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.