开发者

Search Page - Boolean Value - How to Search for True/False/Both?

开发者 https://www.devze.com 2023-02-14 11:41 出处:网络
I have a search page where one of the search options is a Boolean.Right now, the search option is a checkbox, so the user can search for either True or False, but not for both.What is a best practice

I have a search page where one of the search options is a Boolean. Right now, the search option is a checkbox, so the user can search for either True or False, but not for both. What is a best practice for creating this 开发者_如何转开发search option that will allow the user to search for True, False, or Both?

The only thing I can come up with is a dropdown that has Yes, No, Both. Any other suggestions?


The only other way I see is adding an option to activate / deactivate this search option. When deactivated, it will search for both.

If you stick with the dropdown, I'll use Any instead of Both.


I went with the dropdown - Yes/No/Both. Not elegant, but it works.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号