0

Is it possible with javascript to dynamically add iframes to one form?

We have a form with one Notes tab, so for each new note the user can attach a document. What we need is: for each note that has an attached document, to have an iframe with the document in read-only mode. I already know how to prevent some users to download the attached files.

Sean
  • 923
  • 3
  • 14
  • 36

1 Answers1

0

I would recommend two web resources to do that. One web resource needs to fetch all notes (with attachments) related to current entity and display them somehow (perhaps an HTML ordered list). You can use SDK.REST to do this.

When the user clicks on one of the items in the list, the note attachment is fetched and another web resource would be popped up over the form (with Alert.JS) once the file is fully retrieved.

That second web resource could display the received contents.

Francis Ducharme
  • 4,848
  • 6
  • 43
  • 81