Remember the users filter selection

@josef It’s not so important how you set the filter - as long as it works.

What you need to take care of is saving the filter details, and then loading the filter details when needed later.

For example, this filter line:

.contains('fordonstyp', $w('#filterFordonstyp').value)

You can save the value like this:

local.setItem("Fordonstyp", $w('#filterFordonstyp').value);

And you can then restore it later like this:

let prevFordonstyp = local.getItem("Fordonstyp");

You will need to save all of the filter details at the end of the filter() as I demonstrate in the example. And then, as in the example, you will need a loadPrevSearch() function to load the previous search details and apply the filter to the dataset.