I had a doubt whether a toggle can trigger a pop-up screen/modal? But it's not a confirmation modal/pop-up screen.

For example: Turning the toggle to ON state will open up settings modal.

  • I do not see why it could not. What kind of toggle trigger are you talking about? If you are talking about a button, then sure I do not see why you could not make a it a toggle-able feature.
    – Barrosy
    Jul 16, 2019 at 8:23
  • Yes, this is not unusual. Pop-ups created by toggles usually contain warnings or notifications that alert the user that having this toggled on or off has certain consequences. It'd be weird to enter a flow this way, but a short alert is suitable. Jul 16, 2019 at 8:26
  • Could or should? What's the experience for the user? Jul 16, 2019 at 8:46
  • Could or should? Can you elaborate further?
    – NB4
    Jul 16, 2019 at 9:45

3 Answers 3


If it is not a confirmation pop/up (which you should try to avoid, since users tend to get them out of the way without reading the message within) the answer is no.

I have to say that I'm thinking about a switch as toggle. A switch does enable or disable something full stop. I doubt that a user would expect something else using a switch. If it triggers a modal screen, the switch would be no longer accessible. Therefore the user would have to find a way to get rid of the modal in order to switch off the option. This would be weird. Without having a more concrete context(what is the problem you are trying to solve) it is difficult to give an advise or examples of other solutions. Something that crosses my mind is instead of showing a modal just show or hide something below the switch. This would work with the mental model of a switch.

  • +1 for "If it triggers a modal screen, the switch would be no longer accessible" that's the part I was going to bring up. If switching the toggle on opens the modal, and closing the modal via an 'X' or clicking the lightbox closes also swtiches the toggle off, then essentially the switch is just acting like a button.
    – DasBeasto
    Jul 16, 2019 at 12:12

Technically it could, but it's not the expected behavior.

When clicking on a toggle, the user expects to switch from a state to another. He does not expect to get a popup, except if it's an important warning really related to the state on which the user have just switched on by clicking on the toggle. I would personally not recommend to use a toggle to trigger a popup.

Just my 2 cents.


I agree it's not expected behavior and in the example given which is to expose the Settings option, why not just have the user click on the Settings icon or button? A toggle or switch is to toggle/switch between two binary values so it's not to be used for opening modals because in the example given, it would mean the value is Settings Window Open/Settings Window Closed.

When choosing what function the toggle should perform, remember that this control is a metaphor taken from physical interfaces: the lights switch, the Silent mode toggle on a fan... So the function should be a binary one because it's a toggle between on and off modes e.g. [Toggle On/Off] Apply Rules.

The toggle is a relatively new control and previously, interfaces used either a single checkbox or two radio buttons.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.