Legacy Filter and search stopped working

Description

The filter and search attributes I am using for this page are no longer working at all. The search just makes the section go blank and the filter doesn’t filter any of items that I can thankfully still see in the drop down. I am using the Legacy version and I am afraid to switch to V2 on this project since I have so many attributes doing different things that I would have to reconfigure everything. So my Legacy Attributes are not working after working previously.

Site URL

[Required: Please provide a staging/production URL where we can see the issue]

Steps to Reproduce

  1. [First step] I checked the published site
  2. [Second step] When nothing was working I went to check to see if all the attributes were in place
  3. [Third step] I republished to see if it just needed a refresh

Expected Behavior

[What did you expect to happen?] I expected to type in an item in the search and have it filter out and in the dropdown select an item that would filter out the items with that name same as the search

Actual Behavior

[What actually happened?] In using the search the whole cms disappears and with the filter the dropdown does indeed show all the items but nothing is filtered in the cms.

Video/Screenshots

Required: Please provide a short screen recording showing the issue

Additional Context

  • Browser: [e.g., Chrome 120, Safari 17]
  • Device: [e.g., Desktop, iPhone 14]

NDA Notice: If you’re under an NDA, please feel free to send us a Direct Message/Email with the above information.

Hi @jillbascome!

You’re missing the fs-cmsfilter-field="name" attribute on the “Select Field” and the text elements “produce_cat_item_name”.

Add them here:

Also, it looks like you have a duplicate script. If it’s already added in your “All Sites Custom Code settings”, there’s no need to include it again in the page <head>.
Just keep one and it will work great.

I also highly recommend migrating to V2 for improved performance and better long-term support.
Let me know if you need any help!




Hi Pedro,
I think I did everything you recommended but still. I removed the duplicate code from the head of the page. And the loom video above shows what I did. I so want to migrate everything over to V2 but I am afraid to muck it up since I literally just submitted it for review 2 days ago. If/When they come back to me with revisions I will do it then. But if you can help me just get this little irksome issue straight before Monday or Tuesday just to get across the finish line it would be greatly appreciated. I removed the duplicate code from the head of the page. (see imgs)
As always your help is greatly appreciated.

Hi @jillbascome!

Excuse me if I didn’t explain myself well. Here is a quick Loom Video explaining step by step how to change your current setup to the correct one.

Let me know how it goes!