Free Custom Filters for Webflow CMS

Little Tutorial to make custom filters onto DOM elements


Import List.js and RxJS

In Custom Code of your page, inside <head> tag

<script src="//"></script>
<script src=""></script>


Write Custom Code

In Custom Code of your page, before </body> tag

var options = {
  valueNames: [

const masterDivId = 'stroumphs';

const observer = new MutationObserver(function(mutations, MO) {
  const masterDiv = document.getElementById(masterDivId);
  if (masterDiv && masterDiv.childNodes) {
    MO.disconnect(); // stop observing

// start observing
observer.observe(document, {
  childList: true,
  subtree: true,

const handleList = function() {
  const itemsList = new List(masterDivId, options);

  const filters = []
    function(acc, el) {
      if (acc[] == undefined) {
        acc[] = new rxjs.BehaviorSubject(undefined);
      rxjs.fromEvent(el, 'change').subscribe(function(event) {
        acc[].next( || undefined);
      return acc;

  document.getElementById('reset').addEventListener('click', function() {

  const mergedObservable = rxjs.combineLatest.apply(

  mergedObservable.subscribe(function(values) {
    itemsList.filter(function(item) {
      const values = item.values();
      return Object.entries(filters).reduce(function(acc, filter) {
        const filterName = filter[0].replace('filter', '').toLowerCase();

        if (!acc) return false;
        if (
          filter[1].getValue() == undefined ||
        ) {
          return true;
        return false;
      }, true);

Options represents keys of your object

The "masterDivId" const is the ID of your div Collection List wrapper

Then your Collection List div should be affect to class ".list" (for list.js to work)


Create Filter Form

In your page create a form with your filters

And affect selector to ".filters" class (to be parsed by the code of step 2). Give them ID corresponding to the key of your collection to filter (ex: filterGender or filterLang)


Add your collection items

Under your collection list, place item with classname corresponding to your keys to filter

the script will try to match filter value to item content (matching filterLang to .lang content)