Report Action

Report Action

I have a report (Add_a_Student) action that takes the user to another form (Send_Email) and inputs the record ID from the report record into the new form. On load of the new form the original record from the report is fetched and the email field from that record is also input to another field on the new form.

Is it possible to do this same thing but for multiple records? I have set up the action for multiple records but I don't know how to write the script to pass over more than one ID / more than one email address.

This is the code I have for single record action for passing the ID:
openUrl("#Form:Send_Email?Student_ID=" + input.ID,"popup window");

This is the code I have for inputting the email adress of this ID:
x = Add_a_Student[ID == input.Student_ID];
input.Email = x.Email_Contact_1;

I have also included a screen recording to help with understanding my problem - https://www.loom.com/share/8c48c11fcfd6413baf4617444eaf8e12

Thanks so much for any assistance!