Dynamically Add Controls to a Page

Hello Folks,

What I’m trying to achieve is the following : I have a page that is containing a select Input Type and I would like, at the moment the user press the submit button, that another one shows up, based on the selection of the first one. I don’t know if it’s possible or if I have to use a dynamic page to do such thing. Many thanks in advance for your help you this :slight_smile:

Cheers ! Speegel

You want to add a UDInput, based on the input in the previous one?

There in no “OnChange” handler on the UDinputs.
So you could have one form with just the initial ‘condition’ and upon submitting that, hide it and show one other based on the input.

Not pretty, and its a bit advance so someone more skilled would have to chip in.

Thx for the reply @PorreKaj ! I made some tests with cached variables and dynamic pages and it looks promising, I’ll keep you updated. I think dynamic pages are the way to go as they get generated each time they are opened. I’ll give it a try with the on change handler though !

What you can do is use New-UDInputAction -Content to replace the content of your input form