Forum Academy Marketplace Showcase Pricing Features

Multiselect with checkboxes in a repeating group

I decided to go a different route. I’m up against a deadline. Thank you as always though, Faye

Got it! My pleasure, Daniel! :slight_smile:

Faye, if the rg type is not text OR user… what should I make the state type? Should it be the thing type that the rg is searching for?

Yes, I would make it the RG data type. If you only need to display or save a list of texts, from each selected Cell’s Thing, for example, you can have what is saved in the workflow be:

ListofTexts = RepeatingGroupX’s[CustomStateList]'sTextField

Yep, thats what I figured. Thanks Faye!

1 Like

No problem! :slight_smile:

I’m trying to figure out what you wrote here but I can’t…
I have an app where users have a few repeating groups with lists of items to select using checkboxes. I’d like to save one record in the database containing only those items that user selected. How can I refer to checkboxes in repeating group to save this information?
@fayewatson could you please help me? It looks that you’ve done something like that in your projects.

Hi @pawel.mucha :slight_smile: Can you share a link to the app editor? Just to double-check, you’re trying to save a list of ‘checked’ items to a single list field in the database?

Here is the link: https://bubble.io/page?type=page&name=main&id=forum-app-showcase&tab=tabs-1
There is a lot of things that user can check but the idea is that they are divided into sections and there user selects what they want to add to their “diary”.

Yes, I’m trying to save all (and only) checked items to the database in a single list field. The problem I have now is that all items checked and uncheck get saved.

Ps. The app is not in English but I hope for this purposes it’s not necessary.

Edit - - -

There is a video by Coaching Bubble where custom states are explained and it solves the problem. Enjoy - https://www.youtube.com/watch?v=yahP3RyVggY

1 Like

Yes, the example is gone now. If anyone can help, it would be so appreciated!

Looks like this one is no longer working as well?? This link seems to take me to the same thing as the earlier one.

Sounds like the your logic is not aligning with Bubble’s logic. I had the same problem and someone with a much stronger understanding helped me. If you want to use “filtered” you’ll have to first “do a search for”. Filtered is a condition that works in sequence after search.

Some of the conditions apply to text, some to numbers, and some to states–like yes/no–and Bubble usually offers excellent tips to guide us out of misaligned logic. Although Bubble is great at helping us find the way, there aren’t always alerts to let you know if your logic is outputting data in an unacceptable format.

One thing that helped me was to create an additional empty repeating group, and set that new group to be the same type of data field as the list I want to update. Think of it as a container that will catch a list, convert the list to a repeating group, and then pass that repeating group to your search results where the list can be appended to match the “filtered” condition, and then update your state according to the filter or any other parameters.

What part do you need help with? I just posted a reply to someone else with some details that may be helpful in the meantime.