Originally Posted by Fat MJB
In game the menu to switch is still there but it wont let you anyway, you will still need to pick and attack.
To clarify, what happens is once you click the button to switch your Pokemon, the message displays. You are not immediately notified that you're trapped in an in-game battle. You don't get notified if you just attack and don't try switching.