Reply To: preventing dashed sentence spillover / centering sentences

PennController for IBEX Forums Support preventing dashed sentence spillover / centering sentences Reply To: preventing dashed sentence spillover / centering sentences

#7013
Avery
Participant

Thank you so much! I guess in that case I have one final question (sorry).

I added SetCounter(“counter”, “inc”, 1) to the beginning of the experiment. I’d thought that would fix the issue, but what I’m realizing now is that even when I refresh the experiment, the experiment always seems to be loading Sentence 2 (from Group B). The CSV file is identical to what I pasted above, but with “sentence 1” and “sentence 2” replaced by actual sentences, and more test trials below.

Here’s a more complete version of the relevant portion:

Template(PennController.GetTable("fulldesign.csv")
    .filter( variable => variable.itemType == "instructions" ),
    variable =>
newTrial("directions",
     // Automatically print all Text elements, centered
    newText("<p>Welcome! Please read the following information carefully.</p>")
        .print()
    ,
    newText("instruc",variable.Sentence)
        .bold()
        .print()
    ,
    newText("<p>Please enter your Amazon Worker ID below, and then click the button below to view some practice examples before the experiment starts. Note that your Amazon Worker ID is not your email. You can find your Worker ID in the MTurk Dashboard.</p>")
        .print()
    ,
    newTextInput("inputID", "")
        .center()
        .css("margin","1em")
        .log()
    ,  
    newText("idInst", "Amazon Worker ID:"),
    newCanvas(500,75)
        .add(   0 , 20 , getText("idInst") )
        .add( 150,  0, getTextInput("inputID") )
        .print()
    ,    
    newButton("validate","I have read the above information")
        .center()
        .print()
        .wait(
            getTextInput("inputID").test.text(/[^\s]+/)  
                .failure( newText("Please enter your Amazon Worker ID.").color("red").print() )
        )
)
)

Any advice is appreciated!