Checkbox
Properties
OnChange Handler
See Event Handler Endpoints for more information about how event handlers work.
To handle changes in the checkbox value, you can add a script block or UDEndpoint
to the -OnChange
parameter.
Get the value of the Checkbox
To get checkbox value ($true, $false), you can utilize the Get-UDElement
cmdlet to retrieve the bool checked value.
`text New-UDCheckbox -Id MyCheckBox -Label "Check me" $CheckboxValue = ((Get-UDElement -Id "MyCheckBox").Attributes["checked"])
Last updated