Difference between revisions of "Qualtrics"
(Created page with "== Qualtrics == [http://psychru.eu.qualtrics.com Qualtrics] is a web service to which the Faculty of Social Sciences has a subscription for its employees and students. Using...") |
|||
(3 intermediate revisions by 2 users not shown) | |||
Line 4: | Line 4: | ||
only allowed for those purposes where ''on campus'' storage of data is not considered necessary. | only allowed for those purposes where ''on campus'' storage of data is not considered necessary. | ||
+ | == Support == | ||
The subscription to Qualtrics includes support. Please use the Qualtrics ''help > contact support'' function to contact the Support Center. | The subscription to Qualtrics includes support. Please use the Qualtrics ''help > contact support'' function to contact the Support Center. | ||
− | + | For help with your account or data management, find contact details to our data officer and Qualtrics administrator on [https://www.radboudnet.nl/bsi/research-facilities-0/online-research/surveys#Qualtrics RadboudNet] (login required). | |
− | |||
− | |||
− | + | For help with custom code (HTML, CSS, JavaScript), read on, or contact the [[TSG_info|TSG]]. | |
− | To add custom JavaScript, click the gear icon (Advanced Question Options) next to a question and click ''Add JavaScript...'' | + | |
− | + | == Tweaks == | |
+ | To add custom JavaScript, click the gear icon (Advanced Question Options) next to a question and click ''Add JavaScript...'' Here are two examples: | ||
+ | === Check for leaving page === | ||
<pre> | <pre> | ||
var leaveDates = [] | var leaveDates = [] | ||
Line 32: | Line 33: | ||
</pre> | </pre> | ||
− | + | === prevent cutting and pasting === | |
Use the following code to prevent cutting and pasting from and to text fields, expect people to become angry if you use this. | Use the following code to prevent cutting and pasting from and to text fields, expect people to become angry if you use this. | ||
<pre> | <pre> |
Latest revision as of 11:10, 7 October 2022
Qualtrics
Qualtrics is a web service to which the Faculty of Social Sciences has a subscription for its employees and students. Using this service is allowed under General Data Protection Regulation (GDPR) since the Faculty and the Supplier have a data processing agreement. Usage is only allowed for those purposes where on campus storage of data is not considered necessary.
Support
The subscription to Qualtrics includes support. Please use the Qualtrics help > contact support function to contact the Support Center.
For help with your account or data management, find contact details to our data officer and Qualtrics administrator on RadboudNet (login required).
For help with custom code (HTML, CSS, JavaScript), read on, or contact the TSG.
Tweaks
To add custom JavaScript, click the gear icon (Advanced Question Options) next to a question and click Add JavaScript... Here are two examples:
Check for leaving page
var leaveDates = [] function handleLeave(event) { console.log("out") leaveDates.push(new Date().toISOString()) alert("Please don't leave the window") } Qualtrics.SurveyEngine.addOnload(function(){ console.log("load") document.getElementById("Page").addEventListener("mouseleave", handleLeave, false) }) Qualtrics.SurveyEngine.addOnUnload(function(){ console.log("unload") document.getElementById("Page").removeEventListener("mouseleave", handleLeave, false) Qualtrics.SurveyEngine.setEmbeddedData("date", leaveDates.join(",")) })
prevent cutting and pasting
Use the following code to prevent cutting and pasting from and to text fields, expect people to become angry if you use this.
Qualtrics.SurveyEngine.addOnReady(function(){ /* Place your JavaScript here to run when the page is fully displayed */ ee = document.getElementsByClassName("InputText") for(e of ee){ e.onpaste=function(){ return false } e.oncut=function(){ return false } } })