Custom Code | XM Community
Skip to main content
  • 7,446 Topics
  • 23,559 Replies
7446 Topics
How to count the number of time a participant push a key ?

Hi everyone,I'm new on this forum.I'm here because i try to record the number of time a participant press a key when a text is displayed on the screen. So i try to adapt a script i fund here to build this function (my only training in programmation is a 20 hours tuto on openclassroom...). I add the script in the question (in fact in the descriptive text). Here is my attempt :Qualtrics.SurveyEngine.addOnReady(function() {                                           let questionId = "NumberOfPushG" ;                                                     document.onkeydown = function(event) {                                                  let i = 0                                                                               if (event.which == 71){                                                                  event.preventDefault();                                                                i += 1                                                                                 Qualtri

Motivational Playlist