To add date filtering to your existing filters in Webflow using Finsweet's CMS Filter, you'll need to configure a custom date input and extend the FS CMS Filter script to support date-based logic.
div
) using a custom attribute such as fs-cmsfilter-field="date"
.YYYY-MM-DD
) to simplify filtering logic.name
or id
(e.g., id="filter-date"
).Finsweet’s native filter does not natively support date comparisons, so you’ll need custom JavaScript to compare item dates against the user-selected date range.
fs-cmsfilter
’s afterFilter
or onclick
event.display: none
to hide items that don’t match the criteria.window.fsAttributes.cmsfilter
promise to access render
or filteritems
events and apply date-based visibility toggles accordingly.To add date filtering with Finsweet CMS Filter in Webflow, use a hidden field to store each item’s date, create a date input, and write custom JavaScript to compare selected dates with each item’s date. Finsweet doesn't handle date logic natively, so manual comparison after FS filtering is key.