OnUpdateButtonState
Smartsite 7.8 - ...
The OnUpdateButtonState method is invoked for (custom) buttons for which the attribute buttonenabled has been set to callback. The method should determine whether the button, as specified by the action(code) parameter, should be enabled or not, dependent on the selected key(s).