Hide cell in repeating group when condition met

Hi. I am creating an app that reminds students when they have a class and then lets them ‘check-in’ their own attendance.

I have three tabs that display upcoming classes, completed classes, and missed classes. (https://torus-mobile.bubbleapps.io/version-test/schedule?debug_mode=true).

For the upcoming classes repeating group, how can I hide the cell and move all other cells up if user has clicked either Yes or No for Did you attend?

Ideally the upcoming sessions would move to the completed tab when the user checks Yes they attended, and moves to the Missed tab when the user clicks No they didn’t attend.

Thank you in advance!

To achieve what you want, it’s good to think about how this information is updated in the database. How you do that will largely drive what you’re looking for.

For the repeating group that appears in each tab, I would suggest having three different conditions for the “Class Sessions”: missed (yes / no), checked in (yes / no) and for session_occured (yes / no).

  • Upcoming tab: "Do a Search for:[criteria matching specific student] AND session_occured is no
  • Completed tab: "Do a Search for: [criteria matching specific student] and session_occured is yes
  • Missed tab: "Do a Search for:[criteria matching specific student] AND missed is yes

You can drive additional functionality on a given tab by making use of the “filtered” condition

2 Likes

Here is a previous post for collapsing items in a repeating group:

1 Like

Thanks so much Dan! This worked perfectly.

One follow-up question. Is there a way to display my repeating group list of Upcoming class sessions on a Calendar? I’ve tried to use the Calendar plugin but can’t seem to see how to display group of things for each logged in user.

Thank you again!