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

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

AS_9962540
5-Regular Member

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;

AS_9962540
5-Regular Member
(To:Suraj_Patil)

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

AS_9962540
5-Regular Member
(To:Suraj_Patil)

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;
      })
    })
  }
}

 

View solution in original post

Announcements

Topics available:
AR/VR for Data Optimization AR/VR for Security and Control AR/VR for Inspection