Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

populating text field based on the drop down values

Gowri_Sankar
Contributor
December 18, 2019

Hi,

 

I'm having a custom field of text type converted to multi select using behviour. We have a requirement where we need to populate a text field based on the selected value from the drop down.

 

Kindly advise on how to achieve this.

1 answer

0 votes
Leo
Community Champion
December 18, 2019

Hi @Gowri_Sankar ,

you can achieve this through Behaviour, below script may help you.

you can't populate instead you can make it hidden and visible based on the selection

def field = getFieldByName("Select List")
def cf = getFieldByName("Field to be hidden")
cf.setHidden(true)

def val = field.getValue()
if(val == "something"){
cf.setHidden(false)
}

 

BR,

Leo

Suggest an answer

Log in or Sign up to answer