Currently, I have this button that is used to log out of my application. I would like to remove this button and have it appear in the dropdown menu instead. For it to appear in the dropdown menu, I need to create a screen. I was thinking of adding a screen and then, in the code for that screen, adding my current code under ‘when screen opens’, so there wouldn’t really be a page, just a redirection. It’s my somewhat indirect way of accomplishing the task—what do you think?
That approach is very creative. It would take them out of whatever screen they are currently in, but other than that, I don’t envision any issues with that approach. As long as it works, I don’t think that it is a bad idea. I haven’t tested that approach before, but I encourage creative solutions.