checklist line break


Author
Message
buttons
buttons
Partner Member (644 reputation)Partner Member (644 reputation)Partner Member (644 reputation)Partner Member (644 reputation)Partner Member (644 reputation)Partner Member (644 reputation)Partner Member (644 reputation)Partner Member (644 reputation)Partner Member (644 reputation)
Group: Forum Members
Posts: 17, Visits: 1
Hi again

Just wondering if there is anyway to insert a line break in the answers to checklist survey questions?

i've tried the special charaters, but they dont seem to work.

thanks

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: 100K
Danielx - Sunday, March 17, 2019
Hi Forum,

I think this option does not work with
/ order = random

Am I doing something wrong?

Thanks in advance and have a nice day

Code:

<surveypage test>
/ questions = [1 = test_cb]
</surveypage>

<checkboxes test_cb>
/ caption = "This is a caption"
/ options = (
"Answer 1",
"Answer 2",
"Answer 3",
"Answer 4 But this one is to long for one line so I tried cutting it ----------------------------------- here
But this didn't work. ~n didn't work either"
"Answer 5"
)
/ optionvalues = ("1", "2", "3", "4", "5")
/ order = random
/ position = (15%, 25%)
/ fontstyle = ("Cambria", 3.19%, false, false, false, false, 5, 1)
/ responsefontstyle = ("Cambria", 2.69%, false, false, false, false, 5, 1)
/ required = false
</checkboxes>


Displayed:


I don't think you're doing anything wrong,  this looks like a bug. The space required for each option is allocated according to the order in which the options are given, and when the order is randomized, the wrong amount of space is assigned to the wrong option. E.g. in your example, the space reserved for Answer 4, the long one with line breaks, is assigned to Answer 3, which is in Answer 4's expected place (wihtout randomization). The only immediate workaround I can think of would be to force an equal amount of space for each option, i.e.

<surveypage test>
/ questions = [1 = test_cb]
</surveypage>

<checkboxes test_cb>
/ caption = "This is a caption"
/ options = (
"Answer 1~n~n~t~t~t~t~t~t~t~t~t~t",
"Answer 2~n~n~t~t~t~t~t~t~t~t~t~t",
"Answer 3~n~n~t~t~t~t~t~t~t~t~t~t",
"Answer 4 But this one is to long for one line so I tried cutting it ----------------------------------- here
But this didn't work. ~n didn't work either",
"Answer 5~n~n~t~t~t~t~t~t~t~t~t~t"
)
/ optionvalues = ("1", "2", "3", "4", "5")
/ order = random
/ position = (15%, 25%)
/ fontstyle = ("Cambria", 3.19%, false, false, false, false, 5, 1)
/ responsefontstyle = ("Cambria", 2.69%, false, false, false, false, 5, 1)
/ required = false
</checkboxes>


GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Reading This Topic

Explore
Messages
Mentions
Search