To ensure that all items in a Webflow collection are recognized and displayed correctly when using FINSweet attributes CMS filters on a form, list, and text items to filter based on a selected radio button, follow these steps:
1. Add a Collection List Wrapper: Create a Collection List Wrapper element that wraps around the elements you want to filter. This will enable you to define a scope for the filter and ensure that only the appropriate items are displayed based on the selected radio button.
2. Set up the Radio Buttons: Create a radio button group using the built-in form element in Webflow. Set the radio button values to the specific criteria you want to filter the collection items by (e.g., category, tag, price range, etc.). Make sure each radio button has a unique value associated with it.
3. Add the FINSweet Filter Attributes: For each item in your collection, open the Settings panel, navigate to the Custom Attributes section, and add the FINSweet filter attributes. You'll want to use the `fs-filter-target` attribute to define the criteria you want to filter by (e.g., category, tag, etc.). Set the value of the `fs-filter-target` attribute to the corresponding collection field you want to filter with (e.g., `category`, `tag`, etc.).
4. Bind the Radio Buttons to the Collection List: Select each radio button and go to the Settings panel. Under the Element Settings section, click on the Dynamic Binding icon and bind the radio button value to a new dynamic field. This dynamic field will be used to filter the collection list later.
5. Apply the Filter: Select the Collection List Wrapper element and go to the Settings panel. Under the Element Settings section, click on the Dynamic Properties icon and add a new filter. In the filter settings, choose the collection you want to filter and set the filter criteria to match the dynamic field you bound to the radio buttons in the previous step. For example, if your dynamic field is named "filterCriteria", set the filter criteria to `{{filterCriteria}}` to dynamically filter the collection based on the selected radio button.
6. Style the Filtered Collection Items: Lastly, style the individual collection items (text, images, etc.) within the Collection List Wrapper element to ensure they are displayed correctly based on the applied filtering. You can use conditional visibility settings or classes to define how each item should be displayed when filtered or not filtered.
By following these steps, you can ensure that all items in the Webflow collection are recognized and displayed correctly when using FINSweet attributes CMS filters on a form, list, and text items to filter based on a selected radio button.