Hello all,
I searched around but was unable to find anyone with the issue that I am currently facing, this (here) is similar but not the issue.
When I have an Autocomplete box setup and attempt to load it with one preselected value everything is as expected, and I can see the selected item by name.
However, when I do the same with multiple preselected values what I see is only the underlying ID numbers and not the names specified in the AutocompleteOptions like the singular selection and how I would expect.
If I am doing something wrong or if there is a better way, please let me know, otherwise I can put in a bug report via Github.
$AvailableAccList = [System.Collections.Generic.List[Object]]::new()
foreach ($AvailableAcc in (<#API call to another system#>).rows) {
$AvailableAccList.Add((New-UDAutocompleteOption -Name "$($AvailableAcc.name)" -Value "$($AvailableAcc.id)"))
}
New-UDAutocomplete -Id "selAcc" -Label "Accessories" -Options $AvailableAccList.ToArray() -Value @(<#array of ids#>) -FullWidth -Multiple
Thanks in advance.
Product: PowerShell Universal
Version: 4.5.0