This video will cover how to make text disappear and appear after a certain period of time in a Qualtrics survey question using JavaScript - specifically with word recall and other cognitive tests in mind.
There are numerous cognitive tests that measure one's ability to recall certain information over a short duration (examples: 5WT, Four Word Short-Term Memory Test, Mini-Cog test, etc.), but these are generally done in person because they are too difficult to administer electronically or over the phone. While this video is not catered towards a specific word recall or cognitive test, the purpose is to demonstrate that it is indeed possible to administer such tests electronically with a little JavaScript. My requirements were (1) specific text with recall words to appear only after someone pushes a button to begin, (2) hiding the data entry text box so respondents do not cheat and enter information before they are prompted, and (3) the ability for a timer to count down at the end to make the word recall text disappear while making the data entry text box reappear.
This is more of a proof of concept than anything to show that you can indeed make text appear and disappear in an electronic survey for a given question.
I also want to reiterate that the JavaScript code will only work in upgraded/paid versions of Qualtrics. I actually began to make scaled down HTML/CSS only version for those that only had free versions of Qualtrics, but Qualtrics still refused it. I tried! If you have a corporate, non-profit, or university Qualtrics license, this should work.
You can likely use this same code (with a few minor tweaks, namely the div class reference in the CSS code, for the data entry textbox) for other survey administration programs such as SurveyMonkey, REDCap, etc. It may be possible in Google of Microsoft Forms too, but I haven't tried it out, nor has anyone I know.
Here's the full code: https://controlc.com/2dfe1f5d
As always, thank you so much for watching. I am so excited that I finally have 100+ subscribers! Thank you all so much!