Skip to main content
1-Visitor
April 12, 2021
Solved

Uncheck 3D checkbox after next step being played

  • April 12, 2021
  • 1 reply
  • 1605 views

Hi,

 

I have a 3D checkbox and label of instruction. After the first step finished playing, user will check on the checkbox, the ✓ mark will be displayed then the second step will automatically being played. However, currently the checkbox will remain checked even though the second step playing. I want the checkbox to unchecked on the next step. 

 

Need advice regarding this issue.

 

Thanks. 

Best answer by whity

Here is, what I did:

1. place a 3d-button "next" and apply nextCheck(); in the js field

2. place a 3d-checkbox "3DCheckbox-1" 

3. write code in home.js:

$scope.nextCheck= function(){
$scope.view.wdg["3DCheckbox-1"].pressed=false;
}

 

Perhaps a typo has crept in? Please make sure that the naming is correct. 

1 reply

16-Pearl
April 13, 2021

Hi RahSyi,

 

do you recieve any errors in the browser's console?

I have tried it and two ways work:

1st: Use this code in js: $scope.view.wdg["3DCheckbox-2"].pressed=false;

2nd: drag click event on checkbox and choose "reset".

 

ASM1-VisitorAuthor
1-Visitor
April 13, 2021

Hi @whity ,

 

I didn't receive any errors. and I've tried both of the suggestion that you gave. Its not working for me. 

 

Can you please explain more details on how to do the suggestion that you gave correctly? I think I may doing it wrongly. 

 

Thanks.

whity16-PearlAnswer
16-Pearl
April 13, 2021

Here is, what I did:

1. place a 3d-button "next" and apply nextCheck(); in the js field

2. place a 3d-checkbox "3DCheckbox-1" 

3. write code in home.js:

$scope.nextCheck= function(){
$scope.view.wdg["3DCheckbox-1"].pressed=false;
}

 

Perhaps a typo has crept in? Please make sure that the naming is correct.