UDSelect - Setting the selection

I am having a ton of trouble trying to set the selected index based on a value passed in from a dynamic page. I have tried the set-udelement and I can’t seem to do the defaultvalue as it isn’t a choice. I am running 2.9.0 as I find other things seem to break with verion 3.0 betas. Is there an easy way to get that done?

Thanks!

Have you tried New-UDSelectOption? Works fine for me.

It isn’t so much that I can’t add options. If I have a select on a dynamic page, I want to ensure that the value I pass in is the active selection on the UDSelect on the page.