CMS Filter does not work on fields that contain special characters

It appears that CMS filter breaks when a text value being filtered on has any sort of special character on it.

This works
Retail Wholesale

These will not work
Retail & Wholesale
retail-wholesale

Is there any way to allow my content authors to use an & in text values that will be filtered on?

Hey @jon.thomas copying my answer from the other thread.

Special characters are not supported on this version of CMS Filter. We are working on the V2 which will solve this and other pain points of the current version.

Oh no, really!? Is there anything I can do in the API to get this to work?

What is the timeline on V2??

Please add something about this to the documentation!!

We could iterate and modify the text content on the field to remove the “&” :thinking:

Can you share a link?

Will that also remove the & from the frontend? Or are you suggesting to remove it from the stored filter values that the UI is operating on?

Also, I tested it on your car filters example, and the & works fine.

Here’s my site. I will merge my branch. The page is called Retail Products.

https://preview.webflow.com/preview/rlicorp?utm_medium=preview_link&utm_source=designer&utm_content=rlicorp&preview=b80bb78bb604dcdf8f71491911be1830&pageId=671a6ed624419d0183e9c605&workflow=preview

My backup plan is to create a separate CMS field to put a value I can filter on, and just hide that in the UI.

It appears to work if the filter labels are output in a collection list, but not if they are typed manually. Do you know why that would be the case?

That is exactly what I wanted to test, sometimes the non-cms are rendered on the page like this & which breaks the implementation.

:thinking:

I’m ok to roll with the CMS-generated categories for now. Any currenty timeline on V2? Soon-ish? Or quite a ways out?

1 Like

Also, from what I can tell, nothing is being rendered as & so I can’t seem to figure out what the difference is.

Apologies @jon.thomas I meant to say that the & is shown in the HTML as & which breaks the filter.

I sadly do not have a set timeline for V2 but the CMS generated categories should fix all issues.

However do let me know if you encounter any other issue!