Problem filtering option set

I have a “document type” option set. Within each option set I have an attribute as a list from another option set called “things”. This is so I can filter a dropdown to document types that are relevant to the page the user is in. But I can’t figure out the filter logic.

I’ve tried ‘This URL contains this document types things each items display’ (the things option set items are named to match my page names). In my head, this statement should evaluate to true/false. But Bubble is complaining that it doesn’t. What am I doing wrong?

Can you share the screenshots of your option sets and the expression you’re using?




Here you’re lacking a :count ≥ 1 at the end of the Constraint expression. So

Constriant: This document type's things:each item's Display:filtered:count ≥ 1

just because you are filtering Document types based on the fact that, among their things, there is at least one contained in the path URL parameter.

As per the second filter, I’d go with

Get path from page URL contains This text

Cracked it! Thank you

This topic was automatically closed after 70 days. New replies are no longer allowed.