Forum Discussion

Chad_V_Kealey's avatar
Chad_V_Kealey
Steel Contributor
Apr 20, 2018

Modern List with Image Attachments

A client is asking for an "Equipment Inventory" list and wants to include an image of each item. I've done things like this in the past (SP2010) by storing the images in a separate (picture) library, getting the image URL, then putting that into a "Hyperlink or Picture" column. This worked because it was a highly controlled environment (I was adding all of the photos and list items), but what I need here is something I can hand off to an end user. Therefore, the overhead involved (upload the image, get the URL, then create the list item) isn't going to fly. I have to imagine that there is a better way to crack this nut in a "modern" list.

 

Best case scenario is that we find a way to utilize the built-in "attachment" column in the list to store the image and find a way to actually render the image on the page. 

 

I'm sure there's a way to do this with a custom web part, but I'm looking for no-code solutions first.

 

I'm equally sure that there would be a way to build this in PowerApps, but I'd rather not invest the time into that if there is a simpler way.

 

A predecessor of mine had created (in SP2010) a "Show Attached Images" feature which pretty much did what I'm trying to do, as long as the file attachment was an image with a .JPG (case-sensitive) extension. Unfortunately, nobody can find the source from that project, and even if we could, it would need to be rebuilt for the current version, I'm sure.

 

So, any tips or suggestions on how to render attached images in a list view would be greatly appreciated.

  • Joel Hill's avatar
    Joel Hill
    Brass Contributor
    Hi there have you tried having the users insert the image into a rich text field? The image will show up on views, at least classic but I'm pretty sure modern as well.
  • I see here at least two possibilities:
    (1) Customize list forms with PowerApps
    (2) See if column formatting can help here
    • Chad_V_Kealey's avatar
      Chad_V_Kealey
      Steel Contributor
      Column formatting is no help. The attachment column cannot be styled.

Resources