Disabled Button Executes mouseClicked Event Handler

I am using some standard push buttons to fire off scripts that perform database tasks.
The buttons are enabled/disabled based on various conditions.
When the buttons are disabled they still fire the mouseClicked event, where my scripts live.
I found this old thread from 2010:


In it the IA rep says the bug is fixed version 7.1.8.
I’m using 7.9.4 and it is happening.
Has anyone else seen this behavior? I am working around the problem by checking the enabled status of the button before running my scripts, but this shouldn’t work this way.

Mike

Move the code to the action event.

1 Like