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
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
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.
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
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.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.