I am curious as to whether or not it is possible to setup a dependency on a combobox in the powershell script. Basically I want the user to select from the first combobox and then based off what they select the other boxes populate with the correct choices.

Example:

Combo1: Microsoft is selected from list

Combo2: Lists the versions of Microsoft Windows (from a pre-poulated list of course)

Combo3: Lists the types of processor architecture.

***Note: This is just an example but hopefully the concept is understood***
0 Comments   [ + ] Show Comments

Comments

Please log in to comment

Answers

1
If you setup an event for the SelectionChangeCommited event in the Script Form Designer. You can than manage how to add items to the other combos.

I have 2 combo boxs on a form.  1 Event handler for Combobox1 with below code

function ComboBox1SelectionChangeCommitted( $object ){
   
    $ComboBox2.Items.add($combobox1.SelectedItem.ToString())
}

Answered 09/08/2015 by: perceptus
White Belt

Please log in to comment
1

You can create an Event in the Form Designer for Change on Commit, and the populate the 2nd combo box during that event.

Answered 09/08/2015 by: perceptus
White Belt

Please log in to comment
Answer this question or Comment on this question for clarity