saving data into qualtrics | XM Community
Skip to main content
Solved

saving data into qualtrics

  • March 7, 2018
  • 10 replies
  • 429 views

Hello Everyone, I have a timer 10 seconds to fill only one feedback question about his/her experience on the interaction with the random person. data is only recorded in Qualtrics only when the user hits the submit button but data is not recording when the user didn't press submit button with in the time period of ten seconds. i wanted to make use of data and want to record the data in Qualtrics even if the user misses the submit button option in ten seconds. does anyone know how to do that with javascript?

Best answer by AnthonyR

This is the JavaScript necessary Qualtrics.SurveyEngine.addOnReady(function() { var that = this; var allowedTime = 10 //Set this to the time allowed on page setTimeout(function(){ console.log('Now!!'); that.clickNextButton(); }, allowedTime * 1000 ); });

10 replies

TomG
Level 8 ●●●●●●●●
Forum|alt.badge.img+27
  • Level 8 ●●●●●●●●
  • 6084 replies
  • March 7, 2018
Click the NextButton inside a setTimout function. I can’t post the code now, but will when I get a chance.

  • Author
  • 11 replies
  • March 7, 2018
Okay. thanks. Please post the code whenever you get a chance. thank you .

AnthonyR
Level 4 ●●●●
Forum|alt.badge.img+7
  • Level 4 ●●●●
  • 308 replies
  • Answer
  • March 7, 2018
This is the JavaScript necessary Qualtrics.SurveyEngine.addOnReady(function() { var that = this; var allowedTime = 10 //Set this to the time allowed on page setTimeout(function(){ console.log('Now!!'); that.clickNextButton(); }, allowedTime * 1000 ); });

  • Author
  • 11 replies
  • March 7, 2018
Okay. i will try this code and let you know. thank you

  • Author
  • 11 replies
  • March 7, 2018
> @CaptainAustralia said: > Javascript is fine but just to make sure you’re keeping things simple, why don’t you just configure the Timer Question to automatically submit after 10 seconds? I didn't understood clearly what you said? can you break it down for me?

  • Author
  • 11 replies
  • March 7, 2018
> @Abhi said: > Okay. thanks. Please post the code whenever you get a chance. thank you . Thanks

  • Author
  • 11 replies
  • March 7, 2018
> @TomG said: > Click the NextButton inside a setTimout function. I can’t post the code now, but will when I get a chance. Thanks

CaptainAustralia
Qualtrics Employee
The Timing Question (see https://www.qualtrics.com/support/survey-platform/survey-module/editing-questions/question-types-guide/advanced/timing/) is an optional question type that helps you track and control the time a respondent stays on a survey page. If you don't have it, ask you Qualtrics Account Manager about it. You set the number of seconds you'd like to give to respondent. It has a feature to 'auto advance' after the time has expired: ! F

  • Author
  • 11 replies
  • March 7, 2018
> @CaptainAustralia said: > The Timing Question (see https://www.qualtrics.com/support/survey-platform/survey-module/editing-questions/question-types-guide/advanced/timing/) is an optional question type that helps you track and control the time a respondent stays on a survey page. If you don't have it, ask you Qualtrics Account Manager about it. > > You set the number of seconds you'd like to give to respondent. It has a feature to 'auto advance' after the time has expired: > > ! > > F i will try this. and let you know. Thanks

AnthonyR
Level 4 ●●●●
Forum|alt.badge.img+7
  • Level 4 ●●●●
  • 308 replies
  • March 7, 2018
> @CaptainAustralia said: > The Timing Question (see https://www.qualtrics.com/support/survey-platform/survey-module/editing-questions/question-types-guide/advanced/timing/) is an optional question type that helps you track and control the time a respondent stays on a survey page. If you don't have it, ask you Qualtrics Account Manager about it. > > You set the number of seconds you'd like to give to respondent. It has a feature to 'auto advance' after the time has expired: > > ! > > F This is a totally valid method, but it is worth noting that the javascript version gives you more control, since it allows for timing in milliseconds. Since this wound up in custom coding, I figured I would share the js, but the timer method is definitely simpler to configure.