Progress bar

PennController for IBEX Forums Support Progress bar

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #5073
    fliessbachja
    Participant

    Hi everyone, first time using pcIBEX, so hope this question isn’t too stupid:

    Is there a way to change/delete the word “progress” beneath the progress bar? Because it may distract participants that do not speak English.

    Many thanks for your help.
    Jan

    #5076
    Jeremy
    Keymaster

    Hello Jan,

    Yes, you can set the showProgressBar and progressBarText variables, as described in Ibex’s manual. Example:

    PennController.ResetPrefix(null);
    var showProgressBar = false;
    
    newTrial( newButton("Test").print().wait() )

    Jeremy

    #5109
    fliessbachja
    Participant

    Great, thanks!

    #5886
    snederve
    Participant

    Hi Jeremy,

    This question is also related to the progress bar: I’m trying to delete the progress bar in all html forms but not in the test trials. I keep failing to do it properly. The only code that did seem to work somewhat was this:

    var defaults = [      "PennController",{hideProgressBar: true}
                    ] ;

    Unfortunately, using this piece of code deleted hides the progress bar from all trials too, and I just want to keep it out of the consent and debrief forms. Is there a way of doing this? I can give some more code as to how the forms are introduced too.

    Sander

    #5889
    Jeremy
    Keymaster

    Hi Sander,

    Use .setOption on the PennController trials for which you want to hide the progress bar, e.g.:

    newTrial("intro",
      newHtml("intro.html").print()
      ,
      newButton("Next").print().wait()
    )
    .setOption("hideProgressBar", true)
    
    Template( row => 
      newTrial( "test" ,
        newButton(row.Text).print().wait()
      )
    )
    
    newTrial("end" ,
      newHtml("end.html").print()
      ,
      newButton().wait() // wait here forever
    )
    .setOption("hideProgressBar", true)
    .setOption("countsForProgressBar", false)
    

    Jeremy

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.