How to add an alert if someone downloaded a file?

If someone clicks on a download button and downloads the file, an alert should be shown.
I have created this with “interactions” but the file does not download. Just the alert is shown. Do you know why?

How are you creating the interaction? Can u do a loom video?

Well I wanted to do it with a popup but also the same.
Basically I add an interaction to the download button:
Shared with Zight

And now when you click the download button, only the popup is opened. The download does not start. How to do that, that the download also starts?

The interaction prevents the button default. As there is no ‘download’ interaction, you’d have to write a function that incremented a counter and then triggered the file download. Then call that function in the button.

1 Like

Thank you. Now it’s working.