Toggle menu
862
3.8K
30.2K
279.1K
Catglobe Wiki
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Auto refresh answer sheet after time period

From Catglobe Wiki
Revision as of 07:45, 6 July 2017 by Hovietluu (talk | contribs) (v1)

This solution will help you refresh answer sheet after time period.

Here is a way that we can use to make this solution easily:

  1. Preparing JavaScript - Java Script code for questionnaire's Java Script.
    // IsTestMode : bool
    // Parameters: string : eg: &T=1
    window.callWF = function(IsTestMode, Parameters){
      if(IsTestMode) document.location = "https://voxmeter.catglobe.com/Login.aspx?r=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx&n=2&b=1&Test=1" + Parameters;
      else		 	 document.location = "https://voxmeter.catglobe.com/Login.aspx?r=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx&n=2&b=1" + Parameters;
    }
    
    Let's copy this code and replace the 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx' by your questionnaire GUID. Then paste it into Questionnaire's Java script tab on Questionnaire Template Editor. What is Questionnaire GUID? Don't worry, I will show you how to get it below: Please see screenshot:
    this screenshot will show you where you paste this script:
    - Java Script code for question's Java Script.
  2. Adding to questionnaire
  3. Testing