Inquiry on ST-IAT

7 views
Skip to first unread message

Chan Ka Ming (Bo)

unread,
Sep 24, 2025, 12:22:22 PMSep 24
to Minno.js
Hi, all. I am a researcher at Newcastle University. I recently tried to set up an ST-IAT, following the guidelines from this webpage: https://minnojs.github.io/blog/2020/07/10/running-the-st-iat-on-qualtrics/

However, when I change the codes to adapt to my setting, it does not work. I also attached the code in my Qualtrics, as shown below.

Any guidance or help will be much appreciated. 

Qualtrics.SurveyEngine.addOnload(function () {
    // hide question and next button
    var container = this.getQuestionContainer();
    container.querySelector('.Inner').style.display = 'none';
    this.hideNextButton();

    // load MinnoJS from the CDN (you probably don't need to change this)
    var scriptTag = document.createElement('script');
    scriptTag.src = 'https://cdn.jsdelivr.net/gh/minnojs/minno-quest@0.3/dist/pi-minno.js';
    scriptTag.onload = onLoad;
    scriptTag.onreadystatechange = onLoad;
    container.appendChild(scriptTag);

    // create the root element for Minno
    var canvas = document.createElement('div');
    container.appendChild(canvas);

    // function to proceed to next question
    var proceed = this.clickNextButton.bind(this);

    // This function gets activated only after MinnoJS is loaded
    function onLoad() {
        // Run your study (just set the correct URL)
        minnoJS(canvas, "my GitHub link");

        // MinnoJS doesn't know about Qualtrics, we pass a function to inject the results into the question
        // For some reason `piGlobal` isn't available so we attach it to `minnoJS`
        minnoJS.logger = function (value) {
            var el = container.querySelector('textarea');
            el.value = value;
        }

        // At the end of the study let MinnoJS proceed to the next question
        // We need to wait a few miliseconds for Qualtrics to register the value that we entered
        minnoJS.onEnd = function () { setTimeout(proceed, 100); }
    }
});



Reply all
Reply to author
Forward
0 new messages