When is the right time to use a modal window?

April 25, 2024
by
Attila Schmidt

Take a second and think about the last app or website you used. 

You might have been posting a reel to Instagram, depositing a cheque in your banking app, or signing up for a class at your gym. Was there a step that was confusing or you wish you could skip? All too often, the answer to this question is yes—and that’s a problem.

The simplest-to-use interfaces appear almost seamless to users. The job of any interface is always the same—to help the user confidently accomplish a task in as few steps as possible. Doing this has gotten more challenging as we’ve moved from green screen text interfaces to desktop applications to smartphones. As user experience designers, we want to create the types of interfaces that people love to use, but we also design to meet client, security, and regulatory requirements.

One way we do this is by using modal dialogs in web and mobile applications. Modal dialogs have been part of user experience flows since the first graphical user interfaces were developed in the late 1970s and early 1980s. When used right, modals enhance the user experience by making it clear to the user what is required, whether that’s information, acceptance or rejection of terms, or critical information to help the user accomplish the task.

In this post, we’ll examine modal dialogs and when and how to use them effectively.

What is a Modal Dialog?

A modal dialog—also known as a modal window or lightbox—is an interface component that appears in front of the main window. When a modal appears, the user cannot interact with the main window until they either complete the action or cancel the step. Modals focus the users' attention on critical actions or information in a website or application.

Modals have many benefits for users and designers alike, including:

  • Keep it simple. Modals focus on what action or information is required. They block out anything that could distract the user from completing their task.
  • Clear context. Modals provide a context-sensitive interaction model. They enable the user to perform actions or make decisions directly related to the content within the modal without navigating away from the current page or screen they are on.
  • Guided experience. If information is required for a sign-up process, a well-placed modal will ensure that the user can complete it without having to start over or, worse, getting an error message.
A modal dialog showing a user onboarding flow

One important thing to remember here: modals and pop-up windows are not the same.

Modals help move the user along a workflow and must be completed or dismissed. Pop-up windows (the bain of many of our lives) don’t prevent users from simply clicking back to the main window. They can exist in the background without affecting the workflow. They’re also really annoying.

When Should You Use a Modal Window?

Desktop, web, and mobile applications share many of the same user interface components, including modal windows. Consider using a modal window when:

  • Displaying critical information. Modals are the right choice when you need to immediately capture users' attention for critical tasks, such as confirmation messages for essential actions like deleting data, completing transactions, or submitting forms.
  • Confirming user actions. Nothing is more soul-crushing than filling out an online form and doing something that forces you to restart the process. Modals work for warning users about potentially destructive actions, times when changing specific options may step a user back through the journey or send them down a different branch completely. 
A modal showing the user an important notification (left), a modal for mobile onboarding (right)
  • Presenting forms. Speaking of forms…modals work great for presenting multi-step forms or applications to users. They are especially useful for forms with multiple branches depending on user input.
  • Important notifications. An informed user is a happy user. Use modals for essential or critical notifications that a user needs to acknowledge, such as confirming the deletion of data or submitting sensitive information.
  • Onboarding flows. According to Visa, 70% of customers said they would abandon an account setup process for a product with a confusing onboarding process. Modal windows can help create a straightforward, simple, and fast onboarding process that gets your users set up and ready to go.

Three Things to Consider When Using Modals

When you’re considering modal windows in a user experience flow, it’s important to remember:

  • Context. The modal should maintain the context of the parent window and not disrupt the user experience. 
  • Desktop vs. mobile. Modal windows on desktops give you more screen real estate to work with. When considering them for mobile use cases, remember to factor in screen size, touch interactions, and user attention.
  • Accessibility. Accessible design is better design. Modal windows need to be navigated using a keyboard and have proper coding to be read by screen reader tools. Modal windows should also have a different contrast to help them stand out from the parent window.

Modals (and Design) Done Right

Modal windows can be a core component of great user-centric design when used right. They give your users a guided path through essential tasks to create memorable experiences, all while reducing points of friction and frustration. 

Ready to take your project to the next level? Our team is here to help. Contact us today to learn more.

Photo by Hal Gatewood on Unsplash

BitBakery Logo
Unit 100 - 151 Charles St. W.
Kitchener, ON N2G 1H6
(647) 483-2678