If you hit the ribbonButton "AddToQueue" on the incident form a InlineDialog opens, where I can select a Queue and hit ok or cancel. I have to do some stuff on the form (disabling some fields...) after the dialog closed. Especially if ok is clicked. Is there a possibility to use a callback-function?

I tried to customize the command "Mscrm.AddPrimaryToQueue" and add a javascript action. But unfortunately this method is called after the ribbonButton is clicked and not after the dialog closes.

Any idea to solve this problem?

thx in advance