cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Learn all about PTC Community Badges. Engage with PTC and see how many you can earn! X

Using json to un-check/deselect a checkbox

jlbrenneke
6-Contributor

Using json to un-check/deselect a checkbox

I have an application where I'm reusing a popup (There are 4 different buttons that cause the same popup to be displayed). Each time the popup is displayed, I'm clearing out any data that was in it, but I can't figure out the syntax to un-check a checkbox. I've tried .checked = false or .selected = false but no luck. Any suggestions?

1 ACCEPTED SOLUTION

Accepted Solutions

Thanks, that worked!

View solution in original post

2 REPLIES 2

try $scope.view.wdg['checkbox-2']['value'] = false;

 

or,    .... .value=false;

Thanks, that worked!

Top Tags