How do I reference a custom state inside a dynamic expression?

This may be a stupid question, but I am completely stuck. I am basically making a marketplace, where sellers can mark the hours they are open, and buyers can choose from these. I have a good setup going where the hours they are available depends on what day it is.

As a result, my approach is to set a custom state on the page depending on what day it is. Then I search for availabilities that have both the seller & the current day… But I can’t reference this custom state anywhere in any expression to make it work.

Always put a custom state onto an element you can remember as the element you placed the custom state, since we need to first in a dynamic expression reference the element in order to then reference the custom state.

Because of my propensity to forget where I placed a custom state, I always place the custom state onto the page or the reusable element itself.

So in your expression you would set up as ‘page custom state’ which might look like ‘seller page hours available custom state’

1 Like

I remember where I placed it, it’s just that no “page custom state” comes up. Is there a certain way to reference it that I’m missing?

Yes, as the way I explained in my first response.