Hello,
I have a problem with the attachments box in a custom sharepoint form.
My form contains an attachment box, drop down fields and image galleries .
The drop down fields are populated with the list of files in the attachment box. The image gallery displays the picture selected in the drop down field
The form is splitted in 3 screens: New screen, edit screen, view screen.
In my view screen, when I try to get the attachments in the collection colAttachments in the "OnVisible", the collection doesn't seem to be correctly populated !

I have added the following label to the view page to debug:
"Count rows in colAttachments: " & CountRows(colAttachments) & " - Count files in Attachments box: " & CountRows(AttachmentsBox_2.Attachments) & " - Count in On Visible: " & countInOnVisible
And for one record with one file attached

I got following result -

I got 2 rows in colAttachments instead of 1 row (maybe value 2 coming from previous displayed record ?)
I added a button to refresh the colAttachments on select: ClearCollect(colAttachments;AttachmentsBox_2.Attachments) and I got the good number of row in colAttchments when I click on the button

Why the On visible code is not returning the correct value ? bug with the attachment box ?
Thanks for your feedback