Skip to content

Fields: Multi Line

RichardHerz edited this page Feb 8, 2021 · 6 revisions

Text entered in a locked LiveCode field will be exported enclosed in HTML enclosed in a <p> tag. Multiple lines entered in a locked LiveCode field will be exported with <br> line endings. Unlocked fields are exported as HTML input elements.

If you want a text area that will have multiple <p> elements, or want a scrolling field, then do the following:

Create a button with TEXTDIV as the first word in the name followed by at least one more word. This will be exported as an empty HTML div element.

After export, in the CSS file for this div, you can add the property overflow: scroll or auto.

If you add text in the HTML for this div, in order to IMPORT with this text saved, remove the word TEXTDIV in the HTML and CSS files before import.

Clone this wiki locally