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: 13K, Visits: 102K
No need for special characters in this case, I think. Try it like this:

<checkboxes linebreak>
/ caption="There are linebreaks in these response options:"
/ required = true
/ options=(
"This is the
first response",
"This is the
second response",
"This is the
third response")
</checkboxes>

Best,
~Dave

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

Unfortunatly I've tried that and it doesn't work. Just comes up with a □ in the middle of the line.
Any other ideas?



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: 13K, Visits: 102K
Very odd. I've double-checked and on my machine the linebreaks work as desired (see attached screenshot). Which version of Inquisit are you running (I'm at 3.0.3.1 from November 11)? You might also want to attach your non-working script here. I'd be happy to take a look and see if I can figure out what's going on.

Regards,
~Dave

Attachments
checkbox_linebreak.png (396 views, 18.00 KB)
seandr
seandr
Supreme Being (143K reputation)Supreme Being (143K reputation)Supreme Being (143K reputation)Supreme Being (143K reputation)Supreme Being (143K reputation)Supreme Being (143K reputation)Supreme Being (143K reputation)Supreme Being (143K reputation)Supreme Being (143K reputation)
Group: Administrators
Posts: 1.3K, Visits: 5.6K

I think Dave's hunch is correct as support for multiline button captions was added within the last couple of version updates.


Try this downloading the latest update (3.0.3.1), and it should work.


-Sean


Danielx
Danielx
Respected Member (312 reputation)Respected Member (312 reputation)Respected Member (312 reputation)Respected Member (312 reputation)Respected Member (312 reputation)Respected Member (312 reputation)Respected Member (312 reputation)Respected Member (312 reputation)Respected Member (312 reputation)
Group: Forum Members
Posts: 4, Visits: 20
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:


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: 13K, Visits: 102K
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>


Danielx
Danielx
Respected Member (312 reputation)Respected Member (312 reputation)Respected Member (312 reputation)Respected Member (312 reputation)Respected Member (312 reputation)Respected Member (312 reputation)Respected Member (312 reputation)Respected Member (312 reputation)Respected Member (312 reputation)
Group: Forum Members
Posts: 4, Visits: 20
Dave - Monday, March 18, 2019
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>


Okay.
Thank you for the workaround :)
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Reading This Topic

Explore
Messages
Mentions
Search