I want to let my user select a number and a time unit to set a limit time.
This is the first design.
I'm decide save data by this way, but is there any better design for UX?
User Experience Stack Exchange is a question and answer site for user experience researchers and experts. It only takes a minute to sign up.Sign up to join this community
Normally for two or three fixed options I prefer to have a single selectButton, like the one below:
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.
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.