Using ForAll Loop - New to LotusScript

I have a Checkbox field with 8 options. Depending on what is checked off in my checkbox field, different email groups receive a notification. I would like to find a way to have a message box prompt the user after the form has been submitted informing them of who the form has been sent to. So what ever is checked off in my Checkbox should show up in one single message box stating something like: “Your form has been sent to - list of “Yes” values for CheckboxField.” I however can not get this to work and I have not used ForAll loops at all as I am pretty new at coding in lotusscript.

I think I need something like

ForAll a in checkboxfield

If fielda = “Yes”

Then

Prompt a

Else

End If

ForAll b in checkboxfield

If fieldb = “Yes”

Then

Prompt b, etc etc

Subject: single field

Notes will see that checkbox as one field with multiple values. You just need to get them all into the prompt. You don’t need to cycle thru them to do that, just get that field. You didn’t say if this was client or web, so this example is for client:

Dim workspace As New NotesUIWorkspace

Dim uidoc As NotesUIDocument

Set uidoc = workspace.CurrentDocument

Messagebox( "Your document was sent to: " & uidoc.FieldGetText( "yourfieldname" ) )