Millisecond Forums

Position of textbox

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

By Sophie Blau - 12/7/2015

Hello, maybe you can help me:
I have a problem with the positioning of a textbox. I want the textbox to appear under the caption (on the same horizontal position but one line lower would also work), because as it is now, the first line of the box isn't visible depending on wether your cursor is placed on one of the other checkboxes or not. There appears to be a box underlying the options of the ckeckboxes above which overlaps the textbox.
Is there a way to do move the textbox?
I tried defining the /position of the textbox or use /hposition and /vposition, but then the textbox vanished altogether.

Here is the Script:

<checkboxes diagnose>
/ caption = "Ist bei Ihnen derzeit eine andere psychische Störung diagnostiziert?"
/ options = ("Generalisierte Angststörung", "Soziale Angststörung", "Körperdysmorphe Störung", "Depressive Störung", "Nein, bei mir ist derzeit keine psychische Störung diagnostiziert.")
/ other = diagnose_1
/ orientation = vertical
</checkboxes>

*****this is the textbox i want to move ****

<textbox diagnose_1>
/ caption = "Andere, nämlich:"
/ required = false
/ textboxsize = (25%,5%)
/ orientation = vertical
</textbox>

<radiobuttons substanz>
/ caption = "Ist bei Ihnen derzeit eine Substanzabhängigkeit diagnostiziert (z.B. Alkohol, Drogen, Medikamente)?"
/ options = ("Ja", "Nein")
/orientation = horizontal
/required = true
</radiobuttons>

<radiobuttons schizo>
/ caption = "Ist bei Ihnen derzeit eine Form von schizophrener oder psychotischer Störung diagnostiziert?"
/ options = ("Ja", "Nein")
/orientation = horizontal
/required = true
</radiobuttons>


<surveypage AngabePerson1>
/ caption = "Bitte lesen Sie die nun folgenden Fragen sorgfältig durch und klicken Sie Zutreffendes an:"
/ fontstyle = ("Arial", 2%, false, false, false, false, 5, 0)
/ responsefontstyle = ("Arial", 2%, false, false, false, false, 5, 0)
/ itemfontstyle = ("Arial", 2%, true, false, false, false, 5, 0)
/ itemspacing = 4%
/ showpagenumbers = false
/ questions = [1=substanz; 2=schizo; 3=diagnose; 4=diagnose_1]
/ showquestionnumbers = false
/ finishlabel = "Weiter"
/ navigationbuttonfontstyle = ("Arial", -20, true, false, false, false, 5, 0)
/ nextbuttonposition = (70%, 90%)
</surveypage>


Thank you in advance!
By Dave - 12/7/2015

When used as an /other response option, I'm afraid the only way to avoid overlap with the bounding rectangle around the other response options is to "push" the textbox out to the right by adding tabs to its /caption:

<checkboxes diagnose>
/ caption = "Ist bei Ihnen derzeit eine andere psychische Störung diagnostiziert?"
/ options = ("Generalisierte Angststörung", "Soziale Angststörung", "Körperdysmorphe Störung", "Depressive Störung", "Nein, bei mir ist derzeit keine psychische Störung diagnostiziert.")
/ other = diagnose_1
/ orientation = vertical
</checkboxes>

*****this is the textbox i want to move ****

<textbox diagnose_1>
/ caption = "Andere, nämlich:~t~t~t~t~t~t"
/ required = false
/ textboxsize = (25%,5%)
</textbox>

https://www.millisecond.com/forums/uploads/images/284a494d-51dc-44dd-bdaf-368c.jpg
By Sophie Blau - 12/7/2015

Thank you very much for the quick answer!
I have changed the Syntax so that the textbox isn't an /other response anymore, but looks like it is.
Is there a way i can define the Textbox as required only if the Checkbox option "Andere, nämlich:" is selected? The help programm only showed true or false as options for /required.

The part of the syntax I changed:

<checkboxes diagnose>
/ caption = "Ist bei Ihnen derzeit eine andere psychische Störung diagnostiziert?"
/ options = ("Generalisierte Angststörung", "Soziale Angststörung", "Körperdysmorphe Störung", "Depressive Störung", "Nein, bei mir ist derzeit keine psychische Störung diagnostiziert.", "Andere, nämlich:")
/ orientation = vertical
/ required = true
</checkboxes>

<textbox diagnose_1>
/ caption = " "
/ required = false
/ textboxsize = (25%,5%)
/ position = (10%, 53%)
</textbox>
By Dave - 12/7/2015

> Is there a way i can define the Textbox as required only if the Checkbox option "Andere, nämlich:" is selected?

No, unfortunately there isn't.