Hi all,
Using LF cloud.
I've read here > https://doc.laserfiche.com/laserfiche.documentation/en-us/Subsystems/ProcessAutomation/Content/Forms-Current/Javascript-and-CSS/Displaying%20Documents%20in%20a%20Form.htm
that you can embed a document within a form. I want to do this so the user can approve an invoice, so I want to display a previously uploaded invoice within the approval form in an iframe.
I can create the URL to display the invoice no problem:
https://app.laserfiche.ca/laserfiche/docview.aspx?db=9999999&id=999
but when I create put a 'custom HTML' control on the form and paste the URL, it simply renders the string of text "<iframe width~ and displays no iframe.
<iframe width=960px src=https://app.laserfiche.ca/laserfiche/docview.aspx?db=9999999&id=999&mode=embed></iframe>
I tried wrapping the property values in quotes, no luck. Using Chrome and don't have any special security settings that should disable iframes or anything like that.
I've also tried this is in the Classic Form designer with no luck.
At the end of my tether. Anyone ever got this working?
Cheers, Brett.
@████████
Question
Posted to
Laserfiche Cloud
Question
Embedding a document into a form
asked on August 8, 2022
•
Show version history
0
0
Replies
replied on August 8, 2022
•
Show version history
Hi Brett,
FYI, I used your Iframe code and copied it to the HTML section of a custom HTML activity and it worked as expected.
I did change mine to display the document a little better in the iFrame:
<iframe style="width: 100%; height: 800px;"src="https://app.laserfiche.com/laserfiche/DocView.aspx?db=r-999999&docid=9999&mode=embed"></iframe>
I just used the classic form designer in my testing.
Good luck!
0
0
You are not allowed to follow up in this post.