Insert The Results From Repeat Into An Input Field Value

I would like to the results of a repeat to gather all the email addresses of a staff and put them into a variable. Afterward, I would like to use that list of email address globally that I can just drop as needed in documents.

dmx-repeat:repeat_staff_omts=“sc_omt_info.data.query_omt_all”>
{{email_address}},

Is this possible with Wappler?