Just copy paste.Ĭonst urlParams = new URLSearchParams() Ĭonst tabledbid = urlParams.get('tabledbid') Ĭonst myurlroot = urlParams.get('myurlroot') Ĭonst fileattachmentfid = urlParams.get('fileattachmentfid') Ĭonst src = " " + myurlroot + "/up/" + tabledbid + "/a/r" + rid + "/e" + fileattachmentfid + "/v0&embedded=true" ĭocument.getElementById("kirk").src = srcĬreate this field called Attachment type.
You don't have to understand the code page. The technique is in Kirk Trachy's Magic Buttons app. Sherry, there is a way to preview most normal file types if you are willing to set your file attachment field to be viewable without logging in. check the embed as iframe box and set the window sizeįor additional optimization I used text HTML to wrap the iframed menu and other fields into a table, table row, and table cells so that the menu is to the left of the fields where the requested items are inputted.Īnd now life is a little easier for my colleagues:.toggle the HTML button so you can add code.upload the pdf to a file attachment field.I did some research and found a way to embed the PDF menu in the form as an iframe.
That's when I learned that employees would click the link in the form and the attachment would download and then they would have to open the file to view the menu. Previously the menu was in the form as a formula URL that had the link to the menu as an attachment from a resources table. We have a form for requesting meals to be ordered from a vending service for when we have guests and such.