You are viewing limited content. For full access, please sign in.

Question

Question

display documents within a form

asked on August 24, 2018

Hi there, I have been able to use CSS/Java to display/preview an image within the form but I haven't been able to figure out how to display a document?

Any ideas on how to do this?

 

Thanks,

Lisa

0 0

Replies

replied on August 24, 2018

Weblink or the Web Client inside an iframe element are probably your best options.

Once you know the base URL for a document in Laserfiche you can use JavaScript to build the URL dynamically from an Entry Id, or if the Form is initiated by a Workflow process you could generate the WebLink/Web Client URL in Workflow then pass that to Forms in a hidden field that JavaScript plugs into an iFrame source attribute when the document loads.

1 0
replied on August 24, 2018

I agree with Jason! You can also have the Forms build the URL if you have all the information for it to do so, then place it in an iframe by adding the Custom HTML activity in forms. As for iframe itself, there are many helpful sites out there, but here is one with basic settings (you can put a bogus site URL in there just to get the code): http://www.iframecodegenerator.com/

0 0
replied on May 24, 2020

Dear All,

 

further to this application, I encounter a problem:

 

when user click the "Back" button in the document viewer, it goes back to the root folder (still inside the iframe in the form), and when user click on the document again, the form browser redirect the form to the document viewer showing the document, but not in the embedded iframe, user cannot go back to the form agian.

 

Anyway to solve this??

 

Thanks,

0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.