Prevent File Export When No Checkboxes Are Selected in My Dashboard
I have a dashboard that has a button and multiple checkboxes attached.
When clicking the button, I want it to verify if the user has checked any boxes, and if so, export data that corresponds to the checkboxes.
If no checkbox is selected, upon clicking the button, I want the user to receive the following message: "No export option was selected. Please check the tables you want to extract and try again."
The current behavior works for when a checkbox is selected. But if I uncheck all boxes and hit the button, it gives me the message, but also opens the file with the data that corresponds to the last checked boxes.
The navigation action for the button is currently set to Open File.
Any ideas on how to stop opening the file if no checkboxes are selected? Thank you!