You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<span>Below we present an option for more streamline Qualtrics integration. This has been updated since the publication of <a href="https://doi.org/10.3758/s13428-023-02153-x">
14
+
The (Mis)information Game paper</a>.</span>
15
+
</p>
16
+
11
17
<pclass="error">
12
18
<span style="font-weight: bold">This page is incomplete.</span>
13
19
This guide only shows one method to include The Misinformation Game
@@ -21,12 +27,152 @@ users to your Misinformation Game site, then you can directly input
21
27
information such as the user's ID through The Misinformation
22
28
Game URL. This allows users to not have to enter their ID manually.
Due to browser settings, iframe integrations may <b>fail</b> if a participant is using Safari. Because of this, we recommend preventing people on Safari from completing your survey if using an iframe integration option.
37
+
</p>
38
+
39
+
We have now updated the debrief page within the misinfo game (v2.3.2) to allow for basic communication with a parent page (e.g., Qualtrics survey) when the tool is embedded as an iframe. This allows the game to 'tell' Qualtrics that the participant has reached the debrief page of the misinfo game study that you have embedded, which you can then use to trigger the next button. This integration is based on a paper by Benjamin Carter & Alessandro Del Ponte which can be found [here](https://doi.org/10.3758/s13428-022-01792-w), and we strongly recommend that you cite their paper (along with our paper) if you use this integration method.
40
+
41
+
Before you insert the misinfo game, you will need to ensure that the formatting in your qualtrics survey is appropriate. To do so, navigate to the look and feel tab of your Qualtrics survey.
42
+
43
+
* First, navigate to the "Theme" tab and select the "blank" theme - this will avoid any headers used in your university's Qualtrics theme overlaying the iframe.
44
+
* Then, navigate to the "Style" tab, navigate to "Custom CSS", and select "edit". Enter the following and then hit save:
* This should force the iframe to take up the full screen, and will remove the Qualtrics popup which may impede participants' ability to interact with the iframe.
73
+
74
+
Now that you have set the appropriate formating, return to the builder tab to begin setting up the iframe.
75
+
76
+
* In the qualtrics block that you wish to embed the iframe create a text/graphic question. You should remove any default text so that the textbox is empty.
77
+
* Click on the question that you have just created, and in the lefthand side panel titled "Edit question" select JavaScript (see [Figure 1](#fig1)). This should open to look like the JavaScript editor shown in [Figure 2](#fig2).
* You should now replace the text in the Javascript editor with the following. Note you will have to change the src to match the corresponding URL. If you wish to pipe the participant ID, you will need to add ?id=<user_id_inputted> to the end of the URL, which we recommend to set using embedded data (more information can be found in our paper):
nextButton.style.position = "fixed"; // Position it properly
126
+
nextButton.style.bottom = "20px";
127
+
nextButton.style.right = "40px";
128
+
nextButton.style.visibility = "visible"; // Ensure it's now visible
129
+
console.log("Next button is now visible and enabled.");
130
+
}
131
+
}
132
+
}, false);
133
+
});
134
+
```
135
+
* This forces the Qualtrics next question button to appear when the participant has reached the debriefing page in the misinfo game. This is done by the game sending the "gamecomplete" message to the parent frame.
136
+
* You may wish to delay the next button appearing for a set amount of time before the participant continues (e.g., to increase the chance of them reading the information presented). To do so, you will need to edit everything from the "Check for game completion message" to. You will need to change `<insert timing in milliseconds>` to the amount of time you want to delay the next button appearing for (e.g., if you want to add a 3 second delay add 3000 here):
137
+
138
+
```
139
+
// Check for game completion message
140
+
if (event.data && event.data.type === "gamecomplete") {
141
+
console.log("Game complete message received. Delaying Next button appearance by X seconds.");
142
+
143
+
// Hide and disable the Next button completely
144
+
if (nextButton) {
145
+
nextButton.style.opacity = "0";
146
+
nextButton.style.pointerEvents = "none";
147
+
nextButton.style.position = "absolute";
148
+
nextButton.style.visibility = "hidden";
149
+
}
150
+
151
+
// After X amount of time, show and enable the Next button
152
+
setTimeout(function() {
153
+
if (nextButton) {
154
+
nextButton.style.opacity = "1"; // Make it fully visible
0 commit comments