Forum Replies Created
-
AuthorPosts
-
September 23, 2022 at 3:12 pm in reply to: code doesn't get updated despite the 'saved' message #8535
bgardner
ParticipantWe’re having this bug again, unfortunately. Copying the project fixed it for a few minutes. Does anyone know if there are other ways to get around it?
bgardner
ParticipantIn case the details are helpful, I’ve also been having this issue. Today it was working for a while, and then it stopped processing new edits. If I reload the page, it will show what the actual last-saved version is, usually the first few words/characters of what I just added. In the past, that would often fix things, but today it isn’t (not a huge deal, because I’m not on a deadline, but it’s good to know this bug is a Thing and not just me losing my mind)
bgardner
ParticipantOh this is so much more straightforward that I thought, thanks!!
bgardner
ParticipantOh, what I was missing is that adding that last button prevents the experiment from moving on. Thank you!
bgardner
ParticipantHi,
I’m trying to modify this to have a button that continues the experiment if they say yes to the consent form and stops the experiment if they say no. (Our online consent form is supposed to have the no option, not just assume they will just exit).
I have an attempt, but it doesn’t run. I think what I’m confused about is how to end the whole experiment, not just the trial.
newTrial("Consent", newHtml("Consent", "consent.html") .center() .print() , newCanvas("consent_answers", '75vw', '80vh') .add("center at 50%", "middle at 25%", newText("I have read this informed consent document and the material contained \ in it has been explained to me verbally. All my questions have been answered, \ and I freely and voluntarily choose to participate.")) .add("center at 50%", "middle at 75%", newScale("agree", "I want to participate in this study.", "I do not wish to participate in this study.") .size("10em","auto") .button()) , newButton("stop", "Stop").callback( getCanvas("consent_answers") .print("center at 50vw", "middle at 50vh") , getScale("agree").wait() , getCanvas("consent_answers").remove() , getScale("agree").test.selected("I do not wish to participate in this study") .success( clear() , SendResults() ) //exit the experiment if they say no, continue if they say yes ) .print("right at 98vw","bottom at 98vh") )
bgardner
ParticipantThank you! Putting the HTML file names in the stimuli list, and realizing that it keeps track of the group throughout the whole script worked.
-
AuthorPosts