1

I want to let my user select a number and a time unit to set a limit time.

This is the first design.

mockup

download bmml source – Wireframes created with Balsamiq Mockups

I'm decide save data by this way, but is there any better design for UX?

  • 2
    Never let the architecture of the database depend on how thing are shown/operated in the UI and vice versa. One day you will regret it when one of them has to change. – jazZRo May 15 at 8:52
1

Normally for two or three fixed options I prefer to have a single selectButton, like the one below:

enter image description here

If there are around 10 items for selection, a single dropdown would be useful, like the example you put.

For more than 10 items I would suggest a search and select dropdown.

enter image description here

PS: I know this is not the channel for DB discussions, but in your table I would store a numeric value, representing an Enumerator rather than the text of the value. So, it would be 1 for Days, 2 for Months, 3 for Years, etc.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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