Community Tip - Learn all about the Community Ranking System, a fun gamification element of the PTC Community. X
I want a popup displaying some text and a button after the last step of sequence is finished.
Thank You in advance.
Solved! Go to Solution.
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;
})
})
}
}
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;
})
})
}
}