Multi-Line Label for textarea

Hi,

I’ve got a lot of short labels, but one is quite long… Is it possible to make a line break in a label for a item without creating a custom item? I’ve tried \n and
with no success…

Thanks in advance,
Michael

Hello

code from demo 02_items/02_text_select_pwd.html

{type: “input”, label: “Command line options”, rows: 2, value: “-vf crop=618:526:0:14,pp=lb”},

changed to

{type: “input”, label: “Command line options
Some text”, rows: 2, value: “-vf crop=618:526:0:14,pp=lb”},

works fine

Please attach your demo with issue if you still have some problems.

Hello Andrei,
Thanks for the code! It works fine…

I load my form-structure from XML, so I had to replace


with
<br>
because you can’t write ‘<’ and ‘>’ in XML code directly… another workaround would be CDATA.

Regards,
Michael

Yes, correct, you need to escape < and > for XML.

Hi,

I have an issue with the value field :

 {
						type: "input",
				                label: "Notes",
				                value: "line1
line2
line3",
			               		name:"_notes",
				                rows:3
				        },

I’m experimenting a SyntaxError: unterminated string literalbecause of the \n i think
I need to keep these new lines, would you have any lead to make it works ?
(nothing in the docs or examples)

Thanks !

hi

correct, you need to add \n

Works fine !
Thanks