Show User Progress in a Course
¡Hey ! Having a little bit of trouble figuring out how to showcase if a user has completed a lesson or not . Right now I have a table containing the Progress , which saves the user _id and lesson _id and an Endpoint that returns me all the completed lessons for a specific user . What I 'm finding difiicult to do is a formula that for each lesson of the course shows a value of "Completed " if the user has completed the lesson - so the lesson _id is in the Get _Progress API Call or "Not completed " if not in there . Maybe I 'm missing something in my planning as well ! Thanks ! P .D . ¿Are there Checkboxes native in Toddle ? You can have a native html checkbox . Add input and then if not present , add an attribute "type " to it . Change it to checkbox . As for your main problem , I think you need to have two queries . One to get all the possible lessons , and another that returns the completed lessons from the authenticated user . Then you match them . If lessons .lesson _id exists in progress .lesson _id then show completed , otherwise not completed . I hope this helps . Hey @Vaughtton I 've done that before . You should be able to accomplish that with a formula like : {completed _lessons } - > Size - > multiply by 100 - > divide by ( {all _lessons } - > Size ) It may vary or might need to do it in another way depending on how you are receiving the data . Reach me out through DM with a branch url and I 'll have a look if you want . ✨1

.jpeg/public)