If you would like to add a hierarchical filter for date then add a tree view field to the Layer. 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.
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.
[ { "fieldId": "year" }, { "fieldId": "month" }, { "fieldId": "day" } ]
Once this is done you need to add a Channel Filter:
This will then result in the Hierarchical Filter as pictured below:
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.
Add Comment