To filter a Webflow CMS Collection List by the current user ID, you'll first need to store user-specific data in a CMS Collection and use Finsweet Attributes with custom JavaScript and webhooks to connect and filter the data. Here's how:
custom code section:
data-
attributes.div#user-id
with data-id="12345"
).data-filter-user="12345"
on a hidden filter element or trigger..fs-cmsfilter
logic with a “programmatic” filter to match CMS items with that user ID (ensure each item includes a field with the user ID embedded in it for comparison).fs-cmsfilter
:data-user-id
to each Collection item via a custom attribute in Webflow.data-user-id == currentUserId
.data-user-id={User ID}
to each item.To filter CMS items in Webflow by current user ID:
This enables a user-specific filtered view without needing server-rendered logic.