Welcome to the Onshape forum! Ask questions and join in the discussions about everything Onshape.
First time visiting? Here are some places to start:- Looking for a certain topic? Check out the categories filter or use Search (upper right).
- Need support? Ask a question to our Community Support category.
- Please submit support tickets for bugs but you can request improvements in the Product Feedback category.
- Be respectful, on topic and if you see a problem, Flag it.
If you would like to contact our Community Manager personally, feel free to send a private message or an email.
BOOLEAN IN UI
papawo
Member, Developers Posts: 206 PRO
I have 2 boolean selection in UI.
How to inactivate other boolean if user selected other one?
How to inactivate other boolean if user selected other one?
Tagged:
0
Best Answer
-
kevin_o_toole_1 Onshape Employees, Developers, HDM Posts: 565As I said, you can't control visibility of parameters earlier in the dialog with later parameters.
We're unlikely to change that since it can lead to confusing UI where it's hard for a user to understand why a parameter disappeared (Also, when reading through the dialog, it's also hard for a Boolean-2-focused user to know that Boolean 1 is unimportant until they've already played with Boolean 2 — they look like separate choices).
The alternative to two checkboxes is one enum, where the choice can either be given as a dropdown menu:
https://cad.onshape.com/documents/583dee13852b6910510b947a/v/8b4daa1ccd9f3a6a4fdf2d38/e/39a6ce27a0b36965ea2fb565
or as a horizontal row:
https://cad.onshape.com/documents/583dee13852b6910510b947a/v/1356269d930368dc4f33bcce/e/39a6ce27a0b36965ea2fb565
Do either of those work for you?
6
Answers
Here's a simple example feature doing this:
https://cad.onshape.com/documents/d23d3f02d297f1a626d988ff/w/f7169c9d20aac5513724f724/e/1a5ba32207c8142eba85d86e
https://cad.onshape.com/documents/583de44c545b20104cad6da9/w/3c81f383481ff03c72213fc0/e/1743674a7d5a5a04c35b645d
We're unlikely to change that since it can lead to confusing UI where it's hard for a user to understand why a parameter disappeared (Also, when reading through the dialog, it's also hard for a Boolean-2-focused user to know that Boolean 1 is unimportant until they've already played with Boolean 2 — they look like separate choices).
The alternative to two checkboxes is one enum, where the choice can either be given as a dropdown menu:
https://cad.onshape.com/documents/583dee13852b6910510b947a/v/8b4daa1ccd9f3a6a4fdf2d38/e/39a6ce27a0b36965ea2fb565
or as a horizontal row:
https://cad.onshape.com/documents/583dee13852b6910510b947a/v/1356269d930368dc4f33bcce/e/39a6ce27a0b36965ea2fb565
Do either of those work for you?
if user pick boolean 1 it must be for part1 and it will cut a "square", and if boolean 2 , it must be for part 2 and it will cut a "triangle"
interchanging will be wrong .
i want user to pick 1 of the 2 boolean only . and then use the same featurescript again for the other part.
but if this is impossible. the nearest thing i can do is the horizontal row sample you did, unless you have more idea under your sleeve.
user can still go back by unclicking either of the boolean.
but anyway..i guess i will go with the horizontal..
thanks people.