Forums

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

Multi level Fields and conditions

Marco Augusto Santinho Gonçalves April 25, 2019

Good Morning Folks

 

I would like to know what would be the best option or way to create multi levels/cascade fields with conditions, for example i have a product and this product, i choose a product from list and based on the product list to me number of contracts a observation is a product may have 1 or N contracts numbers.. another example would be i choose a country and only list me the country states and then only the states of that country e continuos to citys..neighbhood etc..

 

Ty for any advices

 

ps: im trying to solve this using dynamic forms, table grid and some anothers plugins

2 answers

1 accepted

0 votes
Answer accepted
Deleted user April 25, 2019

Hi @Marco Augusto Santinho Gonçalves   I will Give a simple suggestion if it works for you you can try

For me i have a cascade fields Field called "Business"

OK in the If you select the "Country" option on right side dropdown box i have added the values like "NA, ASPC, Canada, SA,  etc.,"

Now i Have the multi-select custom field like NA States added all the states 

Now I wrote a Behaviour script  Now when i'm creating a ticket choose the Cascading field field value "Country, NA" It will show the Multi Select Field called "NA States" in that I will Choose one or more States.

Same like that you can do for rest of the options

This is one way we can do 

 

I hope its works

 

Thanks,

Phani

Marco Augusto Santinho Gonçalves April 25, 2019

Ty for the tips..i ill try !

Marco Augusto Santinho Gonçalves April 25, 2019

Do u have a sample of this behavior script?

Deleted user April 25, 2019

HI @Marco Augusto Santinho Gonçalves   Here is test script work around 

 

 

// customfield_10001 -- cascading field

// customfield_10002 -- multi Selectlist field

// United States -- Value from Right side dropdown menu from cascading field 

Note: Please make sure the "United Satates" Value is not repeated value in parent Values

 

if(getFieldById("customfield_10001").getValue().contains("United States")){
getFieldById("customfield_10002").setHidden(false)
getFieldById("customfield_10002").setRequired(true)
}else{
getFieldById("customfield_10002").setFormValue(null)
getFieldById("customfield_10002").setRequired(false)
getFieldById("customfield_10002").setHidden(true)
}

 

I hope it helps 

 

Thanks,

Phani

0 votes
Marco Augusto Santinho Gonçalves April 26, 2019

Ty alot this worked for me

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events