jat0369
asked on
Create Dropdown and pass selection back to script
I have a script that builds a CSV file (Name, Description).
I'd like to have some sort of pop-up occur that has a dropdown of only one of the collumns. Once the item is selected and the user clicks okay, it sends that variable back to the script for further processing. I'm at a loss of how to go about doing this. Would someone please help me out and show me a simple example of how to do this?
I'd like to have some sort of pop-up occur that has a dropdown of only one of the collumns. Once the item is selected and the user clicks okay, it sends that variable back to the script for further processing. I'm at a loss of how to go about doing this. Would someone please help me out and show me a simple example of how to do this?
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Hi BChallis - any update to this? Any idea as to what I'm doing wrong?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
I ended up solving the issue myself using the code supplied. It's not as clean as the version bchallis supplied, but it works.
ASKER
I took the SelectItemFromList.txt and renamed it dropdown.ps1
I referenced the file and called the function and It's giving me a bit of a problem. What am I doing wrong?
Open in new window