Debug Array

I am trying to debug an array filter but I can't seem to get the array formatting correct.

<SearchProvider config={debug=true}>

window.searchUI.addFilter("departmentid", "[20532037, 70960001,20612300,54399007]", "any");

How should the string of number be formatted?

Hey @Joe_Stark,

What does the data in the "departmentid" field look like? Assuming it's something like the following:

{
  "departmentid": ["20532037", "70960001" , "20612300", "54399007"] 
}

And you are trying to apply multiple values, you would do them one at a time:

window.searchUI.addFilter("departmentid", "20532037", "any");
window.searchUI.addFilter("departmentid", "70960001", "any");
window.searchUI.addFilter("departmentid", "20612300", "any");
window.searchUI.addFilter("departmentid", "54399007", "any");