Wednesday, December 21, 2016

Forms: Modal dialog or separate page in single page app?


In my application, I have pages that show lists of some objects, for example "People" or "Contracts". From these pages, the user may create a new object. Often these objects only have a handful of properties, maybe 4 or 5. My question is about the best approach for the forms used for creation of new objects.


Sometimes I have used a separate page, especially when the number of properties is greater than 5-6. Sometimes I have used a modal dialog. I have even seen some applications that insert an empty row into a table and you fill-in the values. (I will not be doing that!)


Any UX-preferences or suggestions for what approach to take? Also- is it important to be consistent between different types of objects? Or is a mix of approaches OK?


The technology of my application (Ember.js, single-page app) allows me to navigate to a different page instantly, so any timing difference between approaches is not a factor. In fact, the animation of the Bootstrap dialog takes longer than the page transition. The application is a back-office administrative system for insurance companies.



Answer



Modal dialogs assume slightly different interactions, compared to a separate page.





  1. Modals are good for small and quick interactions, like confirmation, signing in, subscribing, feedback, image viewing, etc.


    Fast task execution within a modal dialog allows easy return back to previous view and restoring the context.




  2. Modals provides less real estate. It's good for small tasks, but could be pain for a rich UI.




  3. Modals provides easy exit, with close button, ESC, or clicking outside. So there is a danger of accidentally closing it and losing data.





  4. Modals cannot be nested. Although it's possible, it brings bad UX.




Although a tool allows to do something easily, you shouldn't do it in blind way. And the atomic object of a single-page app is a page, you could consider it.


No comments:

Post a Comment

technique - How credible is wikipedia?

I understand that this question relates more to wikipedia than it does writing but... If I was going to use wikipedia for a source for a res...