Radiobuttons jolts the page upwards


Author
Message
f.sunstrum
f.sunstrum
Associate Member (77 reputation)Associate Member (77 reputation)Associate Member (77 reputation)Associate Member (77 reputation)Associate Member (77 reputation)Associate Member (77 reputation)Associate Member (77 reputation)Associate Member (77 reputation)Associate Member (77 reputation)
Group: Forum Members
Posts: 8, Visits: 20
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>

Dave
Dave
Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)
Group: Administrators
Posts: 12K, Visits: 98K
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.
f.sunstrum
f.sunstrum
Associate Member (77 reputation)Associate Member (77 reputation)Associate Member (77 reputation)Associate Member (77 reputation)Associate Member (77 reputation)Associate Member (77 reputation)Associate Member (77 reputation)Associate Member (77 reputation)Associate Member (77 reputation)
Group: Forum Members
Posts: 8, Visits: 20
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
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Reading This Topic

Explore
Messages
Mentions
Search