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

Community Tip - Need to share some code when posting a question or reply? Make sure to use the "Insert code sample" menu option. Learn more! X

Uncheck 3D checkbox after next step being played

ASM
6-Contributor
6-Contributor

Uncheck 3D checkbox after next step being played

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. 

ACCEPTED SOLUTION

Accepted Solutions
whity
16-Pearl
(To:ASM)

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. 

View solution in original post

4 REPLIES 4
whity
16-Pearl
(To:ASM)

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".

 

ASM
6-Contributor
6-Contributor
(To:whity)

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.

whity
16-Pearl
(To:ASM)

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. 

ASM
6-Contributor
6-Contributor
(To:whity)

Thank you for your help. Its working now. My mistake. 

Announcements

Top Tags