Display participant's previous text responses on the screen during the study #2556
Unanswered
Hanqiu0718
asked this question in
Q&A
Replies: 2 comments
-
Maybe you can implement the code in the
|
Beta Was this translation helpful? Give feedback.
0 replies
-
Hi @Hanqiu0718, in addition to @rankiejiang's approach, you could also append the variable to the HTML that your function returns. Here's an example of adding the response variable below the other content: function selectInstructionText(){ //select the instruction that participants see based on the condition
let html_string;
if (networkData.condition == 1) {
html_string = '<p>Choose <strong>three participants</strong> you would <strong>want to keep seeing</strong> in subsequent rounds</p>';
} else {
html_string = '<p>Click on the three buttons with the <strong>red name</strong></p>';
}
html_string += '<div>'+networkData.LIQ+'</div>';
return html_string;
} And here's how you could add it above the other content: function selectInstructionText(){ //select the instruction that participants see based on the condition
let html_string = '<div>'+networkData.LIQ+'</div>';
if (networkData.condition == 1) {
html_string += '<p>Choose <strong>three participants</strong> you would <strong>want to keep seeing</strong> in subsequent rounds</p>';
} else {
html_string += '<p>Click on the three buttons with the <strong>red name</strong></p>';
}
return html_string;
} Please let us know if you find a solution that works for you. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
We asked participants to recall a situation prior to the study. And we plan to show participants the text they entered throughout the study as a form of text block in the middle of the screen. Now we have the text responses variable created as
networkData.LIQ
, and the function that needs to be modified isWe already have a text instruction shown on the screen. What should I do to add the text response in the middle of the screen of this page?
Beta Was this translation helpful? Give feedback.
All reactions