Saturday, January 7, 2017

web app - DatePicker UX for single and multiple calendar mode


I have a situation where I have to use same datepicker/calendar to do single date selection and multiple date selection in two different modes in the same page.


I thought of a solution where the datepicker hides as user does one click in single selection mode and two clicks with multiple selection mode.


I need to make the user understand that just by viewing rather than by using it.



Answer



I like the Google Analytics solution for this. When you first open the datepicker, it displays the following:


enter image description here


You'll notice that this introduces the user to the idea that they need to select a date range with two visual cues:



  1. by providing an initial range highlighted on the calendar.


  2. by showing two boxes on the right for the date.


If you want the user only to be able to select one date, you could use two similar visual cues:



  1. initially select only one day on the calendar

  2. display only one box at the right


enter image description here


Continuing with the Google Analytics date-range example, once the user selects a start date, the highlighted box on the right side changes its focus. See how the blue rectangle is now around the second date:


enter image description here



The Analytics apply button is now clickable to signify to the user that the selection has changed from the default. I don't think that having an Apply button at all is necessary. If you're concerned about clicks, the dual visual cues of the calendar selection and the number of text boxes should be sufficient to let your user know whether they're picking a date or date-range. Go ahead and close the calendar automatically. Just be sure that you display something like the following afterwards so that the user will have the feedback of knowing the date(s) they've selected.


enter image description here


(Clicking the above re-opens the date-picker.)


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...