Skip to main content
September 23, 2022
Question

How to get Document Viewer Field working

  • September 23, 2022
  • 10 replies
  • 0 views

I been trying to get a document upload it into Appian and also being able to display it using the document viewer Field , but I get the message that is either deleted or not in system. Can someone please show me an example of how to set it up please.

10 replies

mikes0011
Brainy
September 23, 2022

This will not work with newly-uploaded documents, until the form they're uploaded on is submitted. 

Until that point, they exist in a special "quarantine" area in the Appian filesystem, where they're not accessible by conventional means (including as targets of the "document()" function, and the preview field).  Such uploads are only moved to their final "target" location after form submission.

The Expression Guru
franktAuthor
September 23, 2022

Perfect, thank you

csteward
September 23, 2022

First, are you trying to display the document on the same interface as it is being uploaded on, or is it uploaded and displayed later / on a separate interface?

Just to note that until a document is uploaded by submitting the form, it is essentially a temporary object and not an official 'document' at this point, in case this is the situation.

franktAuthor
September 23, 2022

Thank you

csteward
September 23, 2022

Note one work-around we can implement is to add something like an "Upload" or "Preview Document" button on the form that submits (typically without validation), and simply chains back to itself - this will give the user the impression they have not left the form, but turns the document into an official object that can then be previewed.