I generate a list in a custom state from checkboxes in a repeating list. I would like to send this list to another page in order to populate another repeating list on the 2nd page.
I’ve tried a number of different things but can’t seem to get this to work.
Hi @chrisschrade You’ve probably already thought of this alternative, but you can save that custom state list on the User once they click to go to the second page, and then use that to populate the second repeating group. I don’t think there’s currently a way to send a custom state list of things to the page.
Unless, you had all possible combinations of the list stored in your database. And then associated each different list with a number, match the custom state list with a stored list to get the number, and send that number as a parameter to the second page. Then the repeating list on the second page is populated based upon the parameter number. I haven’t tested something like this, but that probably wouldn’t be too hard to set up if there aren’t that many combinations of lists. Saving the list on the User is probably the cleanest solution.
Hi @chrisschrade, have a field under the User type that is whatever type this repeating group is. If it’s a list of products, for example, the field would be a list of products. When a checkbox is checked > add that product to the user’s list. When unchecked > remove from list. Then, on the other page, set the source of the RG as User’s product list.
Gaby’s way is the way to go. You can also keep the list as a custom state list, then save the list it to the User with one action (‘set list’) right before the User leaves to the other page (so it just uses one workflow). Note: this will work even if the User doesn’t have an account.
Yeah, this kinda assume you have control over the “list” that you are trying to send. Anything more than some simple words … you are going to be better off saving it on the User.
Perhaps use a Regex first to strip out commas if they are user entered terms. Dunno, this was more an intellectual exercise to see if it was possible than a fully thought out thing
In my case I have a list of emails, so if you have a comma in the comma separated list then it isn’t a proper email !
When I click ‘Save Practice Plan’, I want the information in the repeating group to save as the ‘list of drills’, under the user type, but that’s where I’m hung up.
I’m not exactly sure of the logic I need in the workflow.
Hey @antadrag in the “Save Practice Plan” workflow, you would use the action:
Data --> Make Changes to a Thing --> Thing to Change: Current User --> Field to Change: Prac_Plans set list GroupDrill’sdrillselect. That will save the custom state list to the Current User.
@romanmg and @fayewatson - thank you for your help on this. Creating a list on a user, then setting the custom state as that list was the way to go for me…thanks again.
I want to set the value of a custom state that is a list of texts to a static value which is a list - example [‘word1’,‘word2’,‘word3’] however bubble’s set state workflow doesn’t seem to be allowing me to do so, any suggestions ?
Hi @romanmg ,
I have followed many of your videos on youtube . They really helped a lot. Thank you for sharing the core knowledge.
I have one very basic question that when we use User data type and store value creating feilds inside User data type, then where does that user record gets stored? In bubble database or browser cache?
Basically my requirement is i want to store data gloabally which can be accessible throughout. I’m wondering wheteher to go for current user record, custom state or any third party plugin (like Global variable) which should allow to store list of items.