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

Community Tip - Have a PTC product question you need answered fast? Chances are someone has asked it before. Learn about the community search. X

How can I add popup after the last step of sequence is finished?

AS_9962540
6-Contributor

How can I add popup after the last step of sequence is finished?

I want a popup displaying some text and a button after the last step of sequence is finished. 

Thank You in advance.

1 ACCEPTED SOLUTION

Accepted Solutions

Try adding this function to play button.

$scope.finishedNote = function(){
  if ($scope.view.wdg['model'].currentStep == $scope.view.wdg['model'].steps){
    $scope.$on('stepstarted', function(){
      $scope.$on('stepcompleted', function(){
        $scope.view.wdg['popup'].visible = true;
        $scope.view.wdg['button'].visible = true;
      })
    })
  }
}

 

View solution in original post

5 REPLIES 5

You can hide/ show popup by javascript after last step

$scope.view.wdg['Popup']['visible'] = true;

I have different figures for which I have created sequences. I can choose the figure I want to view its sequence and I have bind the next buttons to play of the model so how can I use this javascript? 

How can the experience know if the it is the last step for that particular figure?  

https://community.ptc.com/t5/Vuforia-Studio/Step-instruction-by-javascript/m-p/649425

u can refer this for clarification 

in this above user has used switch case for displaying the instruction of each step, by using this in last step u can hide/ show the popup window

I tried that but it's not working. Is there any other method.

Try adding this function to play button.

$scope.finishedNote = function(){
  if ($scope.view.wdg['model'].currentStep == $scope.view.wdg['model'].steps){
    $scope.$on('stepstarted', function(){
      $scope.$on('stepcompleted', function(){
        $scope.view.wdg['popup'].visible = true;
        $scope.view.wdg['button'].visible = true;
      })
    })
  }
}

 

Top Tags