HI @v-xiaochen-msft ,
The above will only help if i attach only 1 file as attachment initially.
But if i attach two different files initially while submitting and in display , i can view 4 files in display mode which is 2 each of each file. I should be able to view both files. If i go with First(ThisItem.Attachments), then i can only view only one file. Please refer for below example
1) I attach file1.jpg and file2.jpg initially while submitting.
2) After submission, when i retrieve the the item, i can view file1.jpg and file2.jpg in display mode which is as expected.
3) I modify a field and submit the form again. When i again retrieve the item in display mode, i actually view 4 files now which are file1.jpg, file1.jpg, file2.jpg, file2.jpg
4) if i change the formula to First(ThisItem.Attachments), i can only view file1.jpg in display mode.
I should be able to see file1.jpg and file2.jpg which is not happening at the moment.
Please let me know if you want me to try anything else.
thanks
Shashank