I can’t see any examples in the documentation of how to assign more than one custom state to a single RG.
You can assign as many custom states to an element as you like (as far as I know there is no limit):
It’s worth pointing out again that it really makes no difference where you assign the custom states - it can be on the page, the RG, any other element - it really doesn’t matter as you can access them from anywhere (the only exception to that is when setting states on elements inside RG cells).
Effectively, when you click on a RG, you can click on it’s data source and refer to one (and only one) custom state?
I don’t really understand what you’re asking here… in the RG Data Source you need to define a list. If that list is defined in a custom state then you can refer to that custom state value.
Or, if you have a custom state of ‘Number’ type you can refer to that in things like item#, items until# etc.
But it doesn’t make any sense to apply a ‘date’ onto the RG’s list (its data source) so I’m not entirely sure what you’re trying to do there.
You need to apply the dates, and location as constraints on your database search.
I have created start_date
and end_date
custom states on the main home page but how can I make the RG refer to them if I can’t add any more info to the RG data source?
Refer to them in the search.
Example, I now go to the ‘Events today’ button and start a work flow, asign the custom state but that custom state is not ‘attached’ to the RG?
Again, it makes no difference where the custom state is attached to. But if you’d prefer then attach it to the RG instead of the page (it has no consequence at all).
Then, when I click ‘value’ I can’t see how to add the start_date info, see below;
You need to set the custom state value to whatever ‘Start Date’ you want it to be.
I.e. for ‘Today’ it should be Current date/time: rounded down to Day
I’ve created a quick example app that I’ve set up to achieve what you’re trying to do, so you can see how to do it for yourself (and how simple it is).
I’ve attached the custom states for ‘location’, ‘start date’, and ‘end date’, to the RG:
Here’s the link to preview so you can see how it works:
Event Test App (bubbleapps.io)
And here’s the editor link so you can see how it’s set up:
Event-test-2021 | Bubble Editor
Take a look and see how I’ve set everything up so you can get a better understanding of what you need to do and how.