Displaying Documents in a Form

You may want to display documents in a form while the user is filling out the form. This can be done by embedding the document in an IFrame on the form page. Insert the following custom HTML code using the Custom HTML option in the Layout page of the form designer:

<iframe height=620px width= 870px src=DocumentURL></iframe>

You have a few options for what to insert in place of DocumentURL. If the document is hosted at a publicly accessible URL, you can use that URL. A WebLink URL would work for this purpose. If the document is in a Laserfiche repository, use the web client URL for that document. If you use a web client URL, users must have rights to view that document in the web client, and may need to sign in to the web client beforehand, as Forms does not automatically pass on their credentials to the IFrame.

You can adjust the height and width used in the above sample to suit your users' needs.

It is also possible to change the document displayed based on a user's input elsewhere on the form. The Laserfiche Solution Exchange offers some sample code showing you how to do this.