Forum Discussion
any solution for requiring a user to first answer some questions before downloading a document ?
- May 09, 2020
user_sharept as Andrew Hodges has said, this cannot be done out of the box with SharePoint. I don't think the Forms approach will work as there is no way for forms to know which document to give you the link to. But a Power Apps solution is certainly do-able. For your data sources you would have the documents library, a separate list to hold the details of who downloaded it and the reason, and an Office 365 Users data source so the app knows who they are - I'm assuming that the users downloading the document are inside your organization.
The user wouldn't need to enter their name as the app knows who they are. But after they enter the customer and the reason for the download the gallery would appear (via the visible property on the gallery) with the list of documents and a download link for each one. When they click the download link the details of their request are saved to the separate list and the document opens in the new tab in the browser for them to download.
You could make it more intelligent for example by filtering the documents that only relate to a specific customer.
The Power App could be embedded in a SharePoint page with the Power Apps web part so the user is not able to do anything else in the library (like delete the document!).
A very simple example (without the filter) is attached.
Rob
Los Gallardos
Microsoft Power Automate Community Super User
Hi user_sharept ,
This is not something SharePoint does so you would need to look at other products in Office 365 or custom development. Couple of options:-
Microsoft forms - User has to submit a form to get the link ( I haven't checked if a custom thank you message on form submit can contain a hyperlink). May not capture username.
Power Apps - you should be able to build a form that does what you want.
SharePoint Framework webpart - You will be able to code something.
Hope that helps.