multiline text field in Salt?

0 votes
asked May 10, 2018 in Question / help by kenjiuno (140 points)

I want multiline text field for Drawing no. list like:

@startsalt

{
Drawing no. list | "A001\nA002\nA003"
PDF save to      | "          " | [Browse...]
}

--
[Now export]

@endsalt

"A001\nA002\nA003" is shown as is.

"A001<br>A002<br>A003" doesn't help also...

1 Answer

+2 votes
answered May 14, 2018 by Serge Wenger Work (16,630 points)
selected May 15, 2018 by kenjiuno
 
Best answer

Hello,

Is this what you want?

@startsalt

{
Drawing no. list | {A001
                    A002
                    A003}
PDF save to      | "          " | [Browse...]
}

@endsalt

commented May 15, 2018 by kenjiuno (140 points)
Thank you!
I could represent multiline text!
commented Jun 20, 2024 by alan.curley (100 points)

This is excellent, where is this documented, I couldnt find it in the manual?.  Is there a mechanism for doing this with a button, what I'm looking for is:

salt

{^"Select Operation" 

[Alarms]|[Auto Load]|[{Operator Manual 

mode}]

}

But the Curly Brackets inside the square brackets prevents it from rendering properly.

\n and </br> don't work either.

Any idea how to implement a multi-line button?

commented Jun 21, 2024 by Serge Wenger Work (16,630 points)
I think it is not possible, but I'm not sure. Please create a new question "Salt multi-line button"
...