Hello,
I would like to make something like in the image. For each student (in a row) I would like to be able to autobind a class by clinking a checkbox.
Do you think something like that is possible inside Bubble ?
Hello,
I would like to make something like in the image. For each student (in a row) I would like to be able to autobind a class by clinking a checkbox.
Do you think something like that is possible inside Bubble ?
Hey @samaywise. It is possible inside Bubble. It is not with auto-binding though. You have to use workflows etc. Please see the demo below:
See below for technical details:
I have these data types:
And the outer repeating group is of course for students and the inner one is for classes:
There is a trick here. Normally, in nested repeating groups, you can’t access Current Cell's Student
within the inner repeating group. In order to access it, you have to have a group inside the outer repeating group, where the type is Student
and the source is Current Cell's Student
. I added it outside the inner repeating group, but it can be technically anywhere in the outer repeating group:
Then, the checkbox in the Student RG do the addition and the removal with clicks:
Addition (see how I access the outer RG’s student):
And you can conditionally make the checkbox checked if the student has that class:
I hope this helps. Check the full editor here: Tests for Forum 13 | Bubble Editor
Thank you for the explaination, I did something very similar to you using Workflow.
Only downside is that when there are too many classes inside the RG row, the checkboxes RG row does not scroll vertically with the Title RG.
Any fixes for that ?
My fix would be this. In the inner RG, just on the first row (when current cell’s index is 1) show the titles of the classes as well. So they will scroll together. Still inside the inner RG but visible only in the first row.
Ok but the presence of the title row would be irrelevant then…
Yes. You wont need that anymore.
This topic was automatically closed after 70 days. New replies are no longer allowed.