Toasts not working in onchange sections

I realise I am posting a lot right now lol.

But got an interesting issue:

New-UDPage -Name “Password Updater” -Content {
$RDMvaults = Get-RDMVault
$cache:RDMpasswordLists = “”
$cache:Passwords = “”
New-UDHeading -Text “Update clients password” -Size 1
New-UDSelect -id selectaclient -Label “Select a client” -option {
New-UDSelectOption -name “Select a client” -Value 0
foreach ($RDMvault in $RDMvaults)
{
New-UDSelectOption -name $RDMvault.name -Value $RDMvault.name
}
}-OnChange {
Show-UDToast -Message (Get-UDElement -id “selectaclient”).Attributes.value
$Selectedclient = RDMvaults | where {.name -like (Get-UDElement -id “selectaclient”).Attributes.value}
Set-RDMCurrentRepository $Selectedclient.id
cache:RDMpasswordLists = Get-RDMSession | where {
.ConnectionType -eq “Credential”} | select name,id
Sync-UDElement -id PasswordList
}
New-UDDynamic -id PasswordList -content {
New-UDSelect -id “passswordselect” -Label “Select a Password List” -option {
$value = (Get-UDElement -Id ‘selectaclient’).value
if ($value -eq “Select a client”)
{
New-UDSelectOption -name “Select a password list” -Value 0
}else{
New-UDSelectOption -name “Select a password list” -Value 0
foreach ($RDMpasswordList in $cache:RDMpasswordLists)
{
New-UDSelectOption -name $RDMpasswordList.name -Value $RDMpasswordList.name
}
}
}-OnChange {
Show-UDToast -Message (Get-UDElement -id “passswordselect”).Attributes.value
Sync-UDElement -id Passwords

	}
}
New-UDDynamic -id Passwords -content {
	$cache:Passwords = Get-RDMSession -name (Get-UDElement -id passswordselect).Attributes.value | select Host,User
	New-UDTable -Data $cache:Passwords  
}

}

Both toasts are not poping up and the table is not populating, but I am trying to work out if the values being gotten are correct to troubleshoot. Any thoughts?

Could it be due to these select boxes being in Dynamic locations?

Since I am asking about this too, is there a neat way to hide this table till the onchange happens? These changes to V3 have got me a bit confused.

Thanks

Try this syntax instead:

Show-UDToast -Message (Get-UDElement -id “passswordselect”)["value"]

Nope that did not work

I copied it from here and it was the formatiing changed the " to ’ and it works.