Adjust UD Select Choice Through Code

Product: PowerShell Universal
Version: 1.4.6

Hi All,

New to UD and hoping someone can point me in the right direction.

I am working on a dashboard which permits a user to make a number of selections.

Some selections are only permitted if a previous selection matches a specific value.
I have found I can grey out the selection when required, but have not found a way to remove the choice i.e. reset it to none but without removing the options.

Can this be done?

Current I am using the onchange property to
Set-UDElement -Id ‘Selection2’ -Attributes @{disabled = $false}

I use this to enable or disable other selects as appropriate.

The above code makes the now irrelevant selection impossible to select however, if a user adjusts this select first and then adjusts the preceeding select, it will become grey but still shows their selected value.

I tried value = ‘none’ and value = $null in the attributes and even tried resyncing the element prior to disabling it in hopes it would reset the selection to default (none) but no luck with those.

Is there another attribute for say “selected value” or a table of available attributes somewhere I can reference?

Thanks in advance for any suggestions.

Can no find the edit button to mark the above resolved.
Found a blog post discussing Dyanmic elements and Sync which allows me to fulfill this.

Dynamic forms in PowerShell Universal Dashboard (