Hi, I’m trying to build a form in which a user can select a pdf file which will then be displayed in the form. I’m using an iframe in an HTML Element Component:
The src attribute of the iframe is defined as:
This does work as long as there are no spaces in the path to the pdf file, e.g.:
/file://c:\path\abc.pdf - works
/file://c:\path\a bc.pdf - does not work
I’ve tried to properly encode the URI with the encodeURI function, but this did not help. Does anyone know how to encode the src attribute of the iframe to allow spaces? Or is there a better approach to display pdf files in the form?
Here is the form I’ve implemented so far: Test.xaml (13.2 KB)