Using Multiselect As A Filter + Query Variable

I have a multi select field that I am using to filter a repeating list. Is there a way to map those selected fields to a query variable? And then subsquently map the query variable to the initial values of the multi-select if the page is navigated to directly?

I figured I can set a workflow for “On Change” to populate a query variable. But if the query variable gets updated to include the array of multselect options it doesn’t show up in the url.

I tried setting the query variable to a comma seperated text of the array items using the ToText() function. But then I can’t figure out how to translate that back into an array when needed.

You’ll need to URL encode the querystring, as array notation [] isn’t valid for a URL. One way you could do this though, is by joining array elements to a string as you said, with a delimiter like - and then split the querystring on this delimiter to get back an array.

1 Like