downloadButton check app state and display error if not appropriate

I have an app with a downloadButton() element, and I am using a downloadHandler() to push the file. That works fine. However when the user clicks on the download button I would like to run some tests on the server and if it isn't appropriate I would like to display some kind of popup instead of pushing the download file. Is there a way to use the downloadHandler conditionally like this?

This topic was automatically closed 54 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.