I would like to use popupPanel to display a question to the user when the user leaves a tab. The user answer the question which determins if the system should stay on the tab or go to the new tab. I would like a solution where the tab isn't switch before the question is answer, which means that the onitemchange can't be used.
If I use onbeforeitemchange then I can't figure out how to forward the user to the "wanted/future" tab. Basically what I want is to get the target tab in the onbeforeitemchange but I don't know how.