Change slider scale for a Liker scale

PennController for IBEX Forums Support Change slider scale for a Liker scale

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #8518
    Mate208
    Participant

    Hello,

    In my experience, I would like to change to slider for a liker scale (up to 10). But I can’t find a way to make it.
    Here is the code :

    Template("QS.csv", row =>           // take a sentence from html file
    newTrial("QS",
    
            newCanvas("LabelsandPrompt", 650, 100)
                .center()
                .css({"margin-top" : "50px"})
                .add(80, -30, newText("Prompt", row.greeting).css({"font-size" : "25px", "font-weight" : "bold", "text-align" : "center"}))
                .add(0, 130, newText("Left", "Para nada o Nunca").css({"font-size" : "20px", "text-align" : "center"}).size(120, 0))
                .add(535, 130, newText("Right","Muchísimo o Casi siempre").css({"font-size" : "20px", "text-align" : "center"}).size(120, 0))
                .add(100, 65, newText("Para cada declaración, mueva el control deslizante rojo para situar la respuesta que sea mas adecuada para usted :").center().css({"font-size" : "18px"}))
                .print()
            ,
            // Slider
            newScale("Echelle_Comm", 100)
                .center()
                .slider()
                .css({"margin-top" : "50px", "max-width" : "unset", "width" : "400px", "height":"10px"})
                .print()
                .log()
            ,
             
            // Send answer
            newButton("ConfirmationSlider", "Continuar")
                .center()
                .css({"margin-top" : "50px"})
                .print()
                .wait()
    ))
    #8519
    Jeremy
    Keymaster

    Hi,

    If you don’t want your scale to be a slider, but a likert scale, don’t use slider:

    newScale("Echelle_Comm", 10) // changed 100 to 10
        .center()
        // .slider() // this line commented out
        .css({"margin-top" : "50px", "max-width" : "unset", "width" : "400px", "height":"10px"})
        .print()
        .log()

    Jeremy

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