cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
dthope69
Level: Powered On

SharePoint list attachment link or embed in HTML

Hello, In the HTML control I'd like to embed a link to the file and the image of file from attachments in SharePoint list. There may be one or more attachments.

 

<P>
Attachments and/or links here...<br>"
& Gallery1.'{Attachments}'.DisplayName & "<br>"
& Gallery1.'{Attachments}'.Path & "<br>"
& "<img scr=" & Gallery1.'{Attachments}'.URL & "><br>"</body>

1 REPLY 1
Community Support Team
Community Support Team

Re: SharePoint list attachment link or embed in HTML

Hi @dthope69 ,

 

Do you want to use HTML Text control to achieve what your formula expression show?

You want to show the attachments’ image(if the attachments are image),path, displayname and url in one control,right?

I am afraid it can’t. As one alternative solution, you can use one gallery to show this.

Could you please try the following workaround?

BrowseGallery1.OnSelect: ClearCollect(test,BrowseGallery1.Selected.Attachments);ClearCollect(test1,AddColumns(test,"path",BrowseGallery1.Selected.'Folder path'))

Add one image horizontal gallery and rename it Gallery2,Gallery2.Items:test1

20190312sharepointlistattachmentlinkorembedinhtml.jpg

 

Result Test:

20190311SharePoint list attachment link or embed in HTMLgif1.gif

 

Hope this could be helpful.

 

 

Best Regards.

Yumia