Check box and uncheck

Hey guys I am trying to on submit uncheck a checkbox I have tried the following:

(sync-UDElement -Id ‘MyCheckbox’).checked = $false

Set-UDElement -Id ‘ScheduleJob’ -Content { checked = $false}

Neither works, probably just missing the way to do this can someone point me in the direction.

thanks

Try this:

Set-UDElement -Id ‘ScheduleJob’ -Properties @{ checked = $false}

Thanks @adam