I have a form that I use for construction site inspections. I am using the "Attachments" control to take pictures and store them on the form.
My questions are:
1) How can I make a View form that shows the actual images in stead of just links?
2) How can I make the Sharepoint list view also show (thumbnails of) the images directly in the list instead of just the paperclip icon?
I know that question 2 is not specifically Nintex related but maybe I get lucky and some of you have had the same requirement 😉
Solved! Go to Solution.
Unfortunately, the view form cannot display a thumbnail natively of attachments. The list view though could potential show a thumbnail, but this would require a custom field or Display Template to be developed.
In response to #1: My suggestion to use jquery (NWF$) to get the attachment URLs for the current item, and then to add them to the form through a DIV element defined inside a Multi Line Textbox This method works, but it's pretty hacky and may not survive an update. Your mileage may vary.
Note: for this I am using SharePoint 2016 on-premises. This will probably not work for SharePoint Online.
*In this example form, I had started fresh, then deleted all of the controls except for the Attachments and the Multi Line Textbox.
Also, I put the complete script in a Gist here: nintex-show-attachments.js
As for Question #2:
In SharePoint on-premises, at least, you can show whatever you want in a list view by using Client-Side Rending. Here is a very detailed explanation of how that works: SharePoint 2013 Client Side Rendering: List Views - CodeProject
I have done this once before and I can say it's probably not worth the trouble, especially if you are using SharePoint Online. In that case, I don't think Modern Pages even support list view customization.
If you find you need to upload a lot of images and associate them with specific sites you are visiting, I would suggest instead uploading to a Picture Library and using folders, metadata, or workflows to assign them metadata.
Hello @c_odegard ,
First let me say I am very grateful for your reply, because we need this done much sooner than I could figure it out on my own!
Could you please clarify the rule in step 3? In the instructions you're very specific that it be a Validation rule, however in the screenshot it's a Formatting rule.