Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

If you would like to add a hierarchical filter for date then add a tree view field to the Layer that references e.g. . For example I have three tagbox fields for Year/Month/Day in my Basic Information Layer and have added a Tree View field to display the date:

...

I have entered the below in Levels. The allow recursion will be set to false by default after saving.

Info

The fields will be shown in the filter in the order below. For an American date for example you may want to use month/day/year.

Code Block
[
    {
        "fieldId": "year"
    },
    {
        "fieldId": "month"
    },
    {
        "fieldId": "day"
    }
]

...

Once this is done you need to add a Channel Filter:

...

Where you can also set a path in addition to the usual Channel Filter settings

...

This will then result in the Hierarchical Filter as pictured below:

image-20250108-091816.pngimage-20250108-091340.png

Info

The filter uses the name display pattern of the list that is linked to the tagbox field. For example if you would like the filter to display a month name such as October instead of 10 then you can add code to the Name Display pattern of the list that is linked to your Month tagbox in this example.