Skip to main content
16-Pearl
August 4, 2023
Solved

Vuforia Studio - Checkbox Widget

  • August 4, 2023
  • 1 reply
  • 1261 views

Hi,

Good Afternoon,

 

I want to trigger an event in Vuforia Studio only after all the checkbox widgets are ticked.

Can anyone help me out with this.

Thanks in Advance,

 

Regards,

Aditya Gupta

 

 

 

 

 

Best answer by sebben

Hi,

 

you can write a function like this: 

$scope.CheckAllCheckboxes = function(){
 if($scope.view.wdg["checkbox-1"].value && $scope.view.wdg["checkbox-2"].value && $scope.view.wdg["checkbox-3"].value){
 //Do something
 }
}

And then trigger it from every selected event of the checkboxes.

 

Hope that helps.

1 reply

sebben14-AlexandriteAnswer
14-Alexandrite
August 4, 2023

Hi,

 

you can write a function like this: 

$scope.CheckAllCheckboxes = function(){
 if($scope.view.wdg["checkbox-1"].value && $scope.view.wdg["checkbox-2"].value && $scope.view.wdg["checkbox-3"].value){
 //Do something
 }
}

And then trigger it from every selected event of the checkboxes.

 

Hope that helps.