Skip to main content
1-Visitor
November 1, 2019
Solved

Using json to un-check/deselect a checkbox

  • November 1, 2019
  • 1 reply
  • 1400 views

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?

Best answer by jlbrenneke

Thanks, that worked!

1 reply

5-Regular Member
November 1, 2019

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

 

or,    .... .value=false;

jlbrenneke1-VisitorAuthorAnswer
1-Visitor
November 5, 2019

Thanks, that worked!