Secret doors?

How do I make a secret door to appear when you press action button on a tile? I want the door to appear on the same tile.
Have a 2nd page with the door graphic, transfer command etc., conditioned by Self Switch A. On the first page, set priority to Action Button with the command to turn self switch A ON.
Thank you very much. 🙂

Original thread: https://forums.rpgmakerweb.com/threads/secret-doors.103233/