bgardner

Forum Replies Created

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • in reply to: code doesn't get updated despite the 'saved' message #8535
    bgardner
    Participant

    We’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?

    in reply to: code doesn't get updated despite the 'saved' message #7994
    bgardner
    Participant

    In 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)

    in reply to: referring to PCIbex code in separate files #7968
    bgardner
    Participant

    Oh this is so much more straightforward that I thought, thanks!!

    in reply to: Exit button #6923
    bgardner
    Participant

    Oh, what I was missing is that adding that last button prevents the experiment from moving on. Thank you!

    in reply to: Exit button #6918
    bgardner
    Participant

    Hi,

    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")
    ) 
    
    in reply to: assigning group at the global level #6879
    bgardner
    Participant

    Thank you! Putting the HTML file names in the stimuli list, and realizing that it keeps track of the group throughout the whole script worked.

Viewing 6 posts - 1 through 6 (of 6 total)