By RBalas - 2/25/2018
Hi there! That's weird. I need to have a textbox in a script where participants might freely enter their questions or remarks. I did that:
<textbox mess> / caption = "Poniżej możesz wpisać swoją wiadomość do Autora tego badania." / mask = alphabetic / textboxsize = (80, 40) / subcaptionfontstyle = ("Arial", 1.90%, false, false, false, false, 5, 0) / responsefontstyle = ("Arial", 1.33%, false, false, false, false, 5, 0) / required = false / multiline = true </textbox>
But the thing is that when entering the text into it, it doesn't allow spaces between words. What? Why? I don't get it really. Can anybody help me with that?
Robert
|
By Dave - 2/26/2018
+xHi there! That's weird. I need to have a textbox in a script where participants might freely enter their questions or remarks. I did that: <textbox mess> / caption = "Poniżej możesz wpisać swoją wiadomość do Autora tego badania." / mask = alphabetic / textboxsize = (80, 40) / subcaptionfontstyle = ("Arial", 1.90%, false, false, false, false, 5, 0) / responsefontstyle = ("Arial", 1.33%, false, false, false, false, 5, 0) / required = false / multiline = true </textbox> But the thing is that when entering the text into it, it doesn't allow spaces between words. What? Why? I don't get it really. Can anybody help me with that? Robert / mask = alphabetic
implements a regular expression under the hood. That regular expression does not match white space characters (and isn't supposed to). You can do
/ mask = ^[a-zA-Z\s]+$
Also see https://www.millisecond.com/forums/Topic5978.aspx if you need to need to match other characters as well (e.g. letters with diacritics or accents).
|
By RBalas - 2/26/2018
+x+xHi there! That's weird. I need to have a textbox in a script where participants might freely enter their questions or remarks. I did that: <textbox mess> / caption = "Poniżej możesz wpisać swoją wiadomość do Autora tego badania." / mask = alphabetic / textboxsize = (80, 40) / subcaptionfontstyle = ("Arial", 1.90%, false, false, false, false, 5, 0) / responsefontstyle = ("Arial", 1.33%, false, false, false, false, 5, 0) / required = false / multiline = true </textbox> But the thing is that when entering the text into it, it doesn't allow spaces between words. What? Why? I don't get it really. Can anybody help me with that? Robert / mask = alphabetic implements a regular expression under the hood. That regular expression does not match white space characters (and isn't supposed to). You can do / mask = ^[a-zA-Z\s]+$ Also see https://www.millisecond.com/forums/Topic5978.aspx if you need to need to match other characters as well (e.g. letters with diacritics or accents). Many Thanks!
|
|