Hello! My English is not the best but I will try to explain it as best as possible.
I am developing a moodle for extra curricular activities in my city. It turns out that it is essential to have the attendance filled in to be able to have attendance reports from both students and teachers. What I need to help me with is this: I need to add two fields to the "add session", one of which could be a boolean to say yes or no or just a ratio. This is to mark whether the given class is a substitute class or not in case a teacher has missed. The second field would open depending on the result of the first.
Briefly: I need to add two fields in the add session, in which one can choose "yes or no", in case of yes opens the second field of type selectbox with access to the list of all teachers in the system to choose one of them.
Attached is the image with the idea of how the fields could be
Can someone help me?