Hi,
My scenario is that I have a SharePoint PowerApps form that I am wanting users to fill out. I have a link on the form to read a PDF and to email if they have any additional questions. The email link is working as I have an html text field and am using the 'mailto:' option, but the <a href= to get to the PDF does not work. The icon changes to the hand when I hover over, but clicking does not go anywhere. I then tried to put a button on the form and use the OnSelect to Launch(URL) but it just seems to reload the SharePoint page. I have the full URL and have tried with a file in the same SharePoint site as well as one on an external web server with no luck. I am also wanting the PDF to launch in a new tab or window if possible.
I was able to get a slight workaround by creating a second screen and then putting a PDF viewer control on that screen, but when I specify the Document value, I get a message on the screen when running the form that the PDF could not load and the option to Open in Browser. That opens the PDF in a separate browser, but is not an ideal user experience with the warning message sitting in front of them off the first click.
Any ideas would be greatly appreciated,
Scott
I have the file in a document library. I updated the link to the url that generated when I clicked the "Copy link" button from the ribbon and it appears to be working properly know.
Thanks for the tips.
Would you please explain a bit for How you stored the PDF in SharePoint ?
If it is stored as the List attachments, then you may consider take use of the Attachment control:
https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/controls/control-attachments
If the PDF is stored within a library, then make sure the URL is the Shared Link.
Putting a Shared link within the Email HTML tag (Make sure you have the IsHtml syntax set to true) should make the PDF available to download or be previewed.
Regards,
Michael
WarrenBelz
146,605
Most Valuable Professional
RandyHayes
76,287
Super User 2024 Season 1
Pstork1
65,946
Most Valuable Professional