Option to repeat questions?

Hello everyone, I have a small questionnaire (mock tool) gathering demographic information for students. I intend the form to only repeat if the person filling is asked the question " Do you intend to ask another student (Yes, No). Here is how it looks.
Any help?

~$Book1.xlsx (165 Bytes)

Hey Brian!

This is actually the default behavior with repeat questions (documented here: https://docs.getodk.org/form-logic/#repeats). If you just leave repeat_count blank in the begin_repeat line, the enumerator will get asked at the end of the repeated section whether or not they want to add another entry or not automatically.

If you want to do it manually with a select_one, the code to do that is documented here: https://docs.getodk.org/form-logic/#repeat-based-on-condition

How possible is it to have the form transition back based on the yes/no response for the repeated group to run.