Forum Discussion

Former_Member's avatar
Former_Member
Accelerator III
9 years ago

Multiselect Filter List

Very new to ARAS.... trying to create a multiselect filtered list.  I have a dropdown on a form (select yes), with the yes, I want another list (filtered list) to be a multiselect list, but it is not working.  Is this even possible?  Thanks for any help!!

3 Replies

  • Hi, I don't think you can do it just by configuration. I think the filtered list component will only work for a single value. The workaround here is to set a multivalue list and to add a method on your yes/no object which onChange, will filter the multivalue list. Can you write such javascript method? Let us know if you need some more  help to get you started.
  • Hello Yoann, I have the exact same requirement. Do you have any sample code to achieve this? I want to push my filtered values to the multi value list.  
  • Just pseudo-code for now:
    • Retrieve the filtering value
    • Retrieve the filtered list
    • Filter the list manually (in javascript, maybe something list after you converted your filteredList in js Array : var filteredList = myList.filter(function(elt){return elt.filter=="value"});
    • Put the result in your <select> (which should already be set as multiple.
    I will give it a try.