Forums

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

How to add a dependent drop down field?

nirmala December 17, 2018

Hi team, 

Please help me with the steps on how to add a dependent drop down fields. example: Based on the category selected, I should be able to display the request type field. 

 

Regards,

Nirmala N 

2 answers

1 accepted

0 votes
Answer accepted
Tushar
Contributor
December 18, 2018

Hi Nirmala,

 

You can use behaviour plugin for your requirement. Following is the sample code:

 

FormField fieldFF = getFieldByName("YOUR CUSTOM FIELD NAME HERE");
String fieldValue = fieldFF.getValue();
if("FIELD VALUE".equals(fieldValue)){
   FormField fieldToHideFF = getFieldByName("YOUR FIELD NAME HERE");
   fieldToHideFF.setHidden(true);
}
nirmala December 18, 2018

Thank you for the information. 

 

Please elaborate on the steps to update the code. 

0 votes
nirmala December 24, 2018

Go to Customer Field-- Add List with "Select List (Casecading)", enter the valus for Parent field and then add value for the dependent fields

Suggest an answer

Log in or Sign up to answer
TAGS
atlassian, atlassian government cloud, fedramp, webinar, register for webinar, atlassian cloud webinar, fedramp moderate offering, work faster with cloud

Unlocking the future with Atlassian Government Cloud ☁️

Atlassian Government Cloud has achieved FedRAMP Authorization at the Moderate level! Join our webinar to learn how you can accelerate mission success and move work forward faster in cloud, all while ensuring your critical data is secure.

Register Now
AUG Leaders

Atlassian Community Events