Millisecond Forums

checkboxes-element, other-attribute

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

By jo700 - 2/24/2017

Hey everybody,

unfortunately I do not know how to implement two textboxes into a checkboxes-element using the other-attribute.

I tried it this way:
/ other = textbox.textbox1, textbox.textbox2

And I tried it that way:
/ other = textbox.textbox1
/ other = textbox.textbox2

Here you can see an example:

<checkboxes FKS>
/ caption = "XXX"
/ fontstyle = ("Arial", 12pt,true)
/ responsefontstyle = ("Arial", 11pt, false)
/ options = ("hair", "ears", "nose", "eyes", "skin")
/ orientation=vertical
/ other = textbox.textbox1, textbox.textbox2
</checkboxes>

<textbox textbox1>
/ caption="XXX"
/ mask=positiveinteger
</textbox>

<textbox textbox2>
/ caption= "XXX"
/ mask=positiveinteger
</textbox>

I hope, anyone can help me to handle this problem. Thanks a lot!
By Dave - 2/26/2017

jo700 - Saturday, February 25, 2017
Hey everybody,

unfortunately I do not know how to implement two textboxes into a checkboxes-element using the other-attribute.

I tried it this way:
/ other = textbox.textbox1, textbox.textbox2

And I tried it that way:
/ other = textbox.textbox1
/ other = textbox.textbox2

Here you can see an example:

<checkboxes FKS>
/ caption = "XXX"
/ fontstyle = ("Arial", 12pt,true)
/ responsefontstyle = ("Arial", 11pt, false)
/ options = ("hair", "ears", "nose", "eyes", "skin")
/ orientation=vertical
/ other = textbox.textbox1, textbox.textbox2
</checkboxes>

<textbox textbox1>
/ caption="XXX"
/ mask=positiveinteger
</textbox>

<textbox textbox2>
/ caption= "XXX"
/ mask=positiveinteger
</textbox>

I hope, anyone can help me to handle this problem. Thanks a lot!

A <checkboxes> element may only have a single /other attribute. You will have to use the <textboxes> as distinct questions instead.

<checkboxes FKS>
/ caption = "XXX"
/ fontstyle = ("Arial", 12pt,true)
/ responsefontstyle = ("Arial", 11pt, false)
/ options = ("hair", "ears", "nose", "eyes", "skin", "other (please indicate below)")
/ orientation=vertical
</checkboxes>

<textbox textbox1>
/ caption="AAA (Answer if you selected 'other')"
/ mask=positiveinteger
/ required = false
</textbox>

<textbox textbox2>
/ caption="BBB (Answer if you selected 'other')"
/ mask=positiveinteger
/ required = false
</textbox>

<surveypage mainpage>
/ questions = [1=fks; 2=textbox1; 3=textbox2]
/ showpagenumbers = false
/ showquestionnumbers = false
</surveypage>