Good day!! anyone know how to show the option like Select all and Deselect All for Multilist field type in powershell. Similar kind of functionality available for checklist field type but not available for multilist field type.
I spent lot of time to find the solution/enable the options for multilist field type but no luck. Below is the sample code
$checkListOptions = [ordered]@{
"Checkbox 1" = 1
"Checkbox 2" = 2
"Checkbox 3" = 3
}
$dialogParams = @{
Title = "Dialog title"
Description = "Description under title"
OkButtonName = "Execute"
CancelButtonName = "Close"
ShowHints = $true
Parameters = @(
@{
Name = "multiListSelector"
Title = "Multilist Selector"
Editor = "multiList"
Source = "DataSource=/sitecore/layout&DatabaseName=master"
Tooltip = "Select one or more from list"
}
@{
Name = "checkListSelector"
Title = "Checklist Selector"
Editor = "checklist"
Options = $checkListOptions
Tooltip = "Select one or more options"
}
)
}
$dialogResult = Read-Variable @dialogParams