Millisecond Forums

Radiobuttons jolts the page upwards

https://forums.millisecond.com/Topic29844.aspx

By f.sunstrum - 10/7/2020

Hi there, I seem to have a problem with the radiobuttons option when set to /required = true.  When one of the scales on the page hasn't been responded to, the full page jolts upwards and you need to scrolled back up to see all the scales again.  Is there a way to fix this at all?

An example of my script is below:

<picture image_1>
/ items = image_1
/ select = noreplace
/ position = (25%, 50%)
/ size = (60%, 60%)
</picture>

<radiobuttons trait>
/caption = "triat"
/ options = ("not at all", "", "", "", "", "", "extremely")
/ optionvalues = ("1", "2", "3", "4", "5", "6", "7")
/ position= (50, 20)
/ position = (50%, 10%)
/ txcolor = black
/ fontstyle = ("Arial", 2.3%, false, true, false, false, 5, 1)
/ responsefontstyle = ("Arial", 1.8%, false, false, false, false, 5, 1)
/ required = true
/ orientation = horizontalequal
</radiobuttons>

<surveypage trait>
/ nextbuttonposition = (22%, 90%)
/ nextlabel = "Continue"
/ recorddata = true
/ itemspacing = 50px
/ stimulusframes = [1=noreplacenorepeat(image_1)]
/ questions = [1 = trait]
/ showquestionnumbers = false
/ showpagenumbers = false
/ ontrialend = [
    if (picture.Stimuli_1.currentvalue == 1) {
        values.kettle = "image_1"
    }]
</surveypage>

<block image_1>
/ trials = [1 = noreplacenorepeat(trait)]
</block>

<expt A>
/ blocks = [1 = image_1]
/ onexptend = [
    values.completed = 1]
/ showmousecursor = true
</expt>
By Dave - 10/8/2020

f.sunstrum - 10/8/2020
Hi there, I seem to have a problem with the radiobuttons option when set to /required = true.  When one of the scales on the page hasn't been responded to, the full page jolts upwards and you need to scrolled back up to see all the scales again.  Is there a way to fix this at all?

An example of my script is below:

<picture image_1>
/ items = image_1
/ select = noreplace
/ position = (25%, 50%)
/ size = (60%, 60%)
</picture>

<radiobuttons trait>
/caption = "triat"
/ options = ("not at all", "", "", "", "", "", "extremely")
/ optionvalues = ("1", "2", "3", "4", "5", "6", "7")
/ position= (50, 20)
/ position = (50%, 10%)
/ txcolor = black
/ fontstyle = ("Arial", 2.3%, false, true, false, false, 5, 1)
/ responsefontstyle = ("Arial", 1.8%, false, false, false, false, 5, 1)
/ required = true
/ orientation = horizontalequal
</radiobuttons>

<surveypage trait>
/ nextbuttonposition = (22%, 90%)
/ nextlabel = "Continue"
/ recorddata = true
/ itemspacing = 50px
/ stimulusframes = [1=noreplacenorepeat(image_1)]
/ questions = [1 = trait]
/ showquestionnumbers = false
/ showpagenumbers = false
/ ontrialend = [
    if (picture.Stimuli_1.currentvalue == 1) {
        values.kettle = "image_1"
    }]
</surveypage>

<block image_1>
/ trials = [1 = noreplacenorepeat(trait)]
</block>

<expt A>
/ blocks = [1 = image_1]
/ onexptend = [
    values.completed = 1]
/ showmousecursor = true
</expt>

Do

<radiobuttons trait>
/caption = "triat"
/ options = ("not at all", " ", " ", " ", " ", " ", "extremely")
/ optionvalues = ("1", "2", "3", "4", "5", "6", "7")
/ position= (50, 20)
/ position = (50%, 10%)
/ txcolor = black
/ fontstyle = ("Arial", 2.3%, false, true, false, false, 5, 1)
/ responsefontstyle = ("Arial", 1.8%, false, false, false, false, 5, 1)
/ required = true
/ orientation = horizontalequal
</radiobuttons>

and there should be no jumping around.
By f.sunstrum - 10/8/2020

Dave - 10/8/2020
f.sunstrum - 10/8/2020
Hi there, I seem to have a problem with the radiobuttons option when set to /required = true.  When one of the scales on the page hasn't been responded to, the full page jolts upwards and you need to scrolled back up to see all the scales again.  Is there a way to fix this at all?

An example of my script is below:

<picture image_1>
/ items = image_1
/ select = noreplace
/ position = (25%, 50%)
/ size = (60%, 60%)
</picture>

<radiobuttons trait>
/caption = "triat"
/ options = ("not at all", "", "", "", "", "", "extremely")
/ optionvalues = ("1", "2", "3", "4", "5", "6", "7")
/ position= (50, 20)
/ position = (50%, 10%)
/ txcolor = black
/ fontstyle = ("Arial", 2.3%, false, true, false, false, 5, 1)
/ responsefontstyle = ("Arial", 1.8%, false, false, false, false, 5, 1)
/ required = true
/ orientation = horizontalequal
</radiobuttons>

<surveypage trait>
/ nextbuttonposition = (22%, 90%)
/ nextlabel = "Continue"
/ recorddata = true
/ itemspacing = 50px
/ stimulusframes = [1=noreplacenorepeat(image_1)]
/ questions = [1 = trait]
/ showquestionnumbers = false
/ showpagenumbers = false
/ ontrialend = [
    if (picture.Stimuli_1.currentvalue == 1) {
        values.kettle = "image_1"
    }]
</surveypage>

<block image_1>
/ trials = [1 = noreplacenorepeat(trait)]
</block>

<expt A>
/ blocks = [1 = image_1]
/ onexptend = [
    values.completed = 1]
/ showmousecursor = true
</expt>

Do

<radiobuttons trait>
/caption = "triat"
/ options = ("not at all", " ", " ", " ", " ", " ", "extremely")
/ optionvalues = ("1", "2", "3", "4", "5", "6", "7")
/ position= (50, 20)
/ position = (50%, 10%)
/ txcolor = black
/ fontstyle = ("Arial", 2.3%, false, true, false, false, 5, 1)
/ responsefontstyle = ("Arial", 1.8%, false, false, false, false, 5, 1)
/ required = true
/ orientation = horizontalequal
</radiobuttons>

and there should be no jumping around.

Wow, so simple.  Thanks for that, Dave.  You're an absolute legend