Ui.Conditional Input Node

Hello everybody,
i’ve seen the new Data-shapes node called Ui.Conditional Input Node.
It is really nice, i managed to make it work but i want to make an optimization in my UI.

The code in dynamo is as follows…


When i run the graph it goes like this:

My question is: when i run the code i have 6 dropdowns… i would like it to appear only 3.
So when the user select the option “1 Camada” the input makes the user uses the first dropdown.
When the user select the option “2 Camadas” the input makes the user uses the first and the second dropdown.

I’ll attach the graph.
Thanks everybody for your help!
Dynamo FOrum.dyn (20.9 KB)

I should think that it would work like so:

This yields this:
image

Edit…
Sorry, misunderstood your issue, but do not believe the conditional data node supports multiple selections (correct me if I’m wrong @Mostafa_El_Ayoubi)

1 Like

Hi @ramoon.bandeira ,
that’s a good one! @Jonathan.Olesen is correct so far you can’t include inputs in more than one option but let me see what I can do about that :wink: .
Will let you know when I have something working. I the meantime, Here’s a little workaround to dynamically generate the right amount of inputs:
image
Dynamo FOrum mod.dyn (41.3 KB)

Dynamic%20amount%20of%20input

5 Likes

That solved the problem for now!
Thanks!

Hi,
first thank you for posting this as it helped me build my UI, but I am stuck at some point. Instead of having to choose from the same input list I want to have different lists for each of the three options, @Mostafa_El_Ayoubi would this be possible using conditionals?
Any help is greatly appreciatedChange_Family Paramters_UI.dyn|attachment (133.4 KB)