Difference between revisions of "Goto web page upon end of questionnaire"

From Catglobe Wiki
Jump to: navigation, search
Line 1: Line 1:
 
If you want to go to an other web page when you completed the questionnaire,
 
If you want to go to an other web page when you completed the questionnaire,
  
you need to set-up as below:  
+
you need to set-up as below:
  
- go to Questions/Questionnaire's javascript menu on questionnaire editor
+
- Go to Questions/Questionnaire's javascript menu on questionnaire editor
  
  
Line 11: Line 11:
  
  
- put js code to them
+
- Put js code to them <source lang="javascript">
 +
AnswerSheet.bind('afterCompleted', function(ev, answerSheet, questionnaire) {
 +
window.location ="https://www.w3schools.com"; // Fill Your Web Page Address here
 +
});
 +
 
 +
</source>
 +
 
 +
 
 +
 
 +
[[File:Aftercompleted.png]]

Revision as of 09:26, 12 April 2017

If you want to go to an other web page when you completed the questionnaire,

you need to set-up as below:

- Go to Questions/Questionnaire's javascript menu on questionnaire editor


Selectmenu.png


- Put js code to them

AnswerSheet.bind('afterCompleted', function(ev, answerSheet, questionnaire) {
 window.location ="https://www.w3schools.com"; // Fill Your Web Page Address here
});


Aftercompleted.png