I’m trying to add 2 date picker and use them to range filter a CMS list.
I’ve add all the attribute, when I test with only number, the range filter works, but when I add this attribute (fs-cmsfilter-type=“date”) it’s not working anymore.
Hey @terence I am afraid this approach is not going to work out out of the box. What we can try to do is add a hidden Range Slider which can work with date ranges and mirror the values to the slider’s input with Mirror Input Values.
If this does not work we can try some custom code to reformat the date from 12/06/2023 to 12062023 in both the filter and the cards and use this as the filter field.
Ah this has been driving me mad for the past few days. I’ve been wrestling with exactly the same situation, which according to the FS docs should work fine.
What’s weirder is that it works great on 50% of the devices I’ve tested, while the other 50% return no matches. The difference doesn’t appear to be related to timezone, locale, date format, OS, browser… and, no errors are thrown when it fails.
Here’s a demo of two devices side-by-side.
Also the prototype link.
This might not be the solution for the mobile issue, which is the first I’ve seen CMS Filter behave differently on other devices, but it clears an error from the build