Altair Posted October 14, 2019 Report Share Posted October 14, 2019 Is there a way to count when a user downloads a file? Like in a Report DataPage? Quote Link to comment Share on other sites More sharing options...
Nuke354 Posted October 14, 2019 Report Share Posted October 14, 2019 Yes you can make a download but this needs little bit of Javascript: First you need 2 DataPages: A Report DataPage A single Record Update form The workflow is similar to this article where the single Record Update Form with a View Counter and a download link. In your Report DataPage, you should create a link that redirects to your submission form. In your Single Record Update From, we need to hide the fields just like in the linked article above. Then set the file counter field to a View Counter Then add this code example: <script> window.location.href = "[@field:Music_File/]"; setTimeout(func, 500); function func() { window.close(); } </script> We create a delay to before closing the window so the download cannot trigger multiple times when the tab is closed. You should now be able to count when the download link is clicked. Hope this helps! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.