Hi,
I am creating an attendance app that use gallery to display rows of data from a sharepoint list (Let's say, it's a SP List A). In the gallery, I'd included label of "Display Name" and "Class Name" and checkbox for each name to be selected. I have 2 buttons of "Presence" and "Absence" where teachers will tick checkbox for each student name and click the either one of the buttons which if selected students are those who present, teacher will click "Presence" button. So after teacher clicked the button, I want it to be submitted to another SP List for attendance checklist (SP List B).
Could someone please help me on this? Thank you.

Here's the SP List A that consists of "Display Name", "Username" for email and "Class Name".

Here's the Gallery to display name list from SP List A which the name is from "Display Name" and "Class Name" hidden label and checkbox.

Here's the SP List B.
Thank you.