User Tools

Site Tools

Translations of this page?:

en:template:multiline_text_input

This is an old revision of the document!


A PCRE internal error occured. This might be caused by a faulty plugin

====== Multiline Text Input fields ====== **Multiline Text Input** fields are text areas in which a user can write a big amount of text, with line breaks if desired. This text can then be passed to the card to be displayed. <code javascript> "fields": [ { "name": "myfieldname", "label":"My field", "default": "Default value", "type": "multiline", "lines": 5 } ] </code> The ''lines'' property set the number of rows the textarea is displayed with. This value is optional and set by default to 4. ===== Using the variable ===== With each **Multiline Text input** field created, a variable is created. To use it in the ''canvasFields'', have the value of a property set to the string ''$myfieldname''. It will be replaced by the value set in the field. A [[Canvas Textbox]] object is better to host the result of such a variable.

en/template/multiline_text_input.1470904248.txt.gz · Last modified: 2016/08/11 10:30 by Nicolas Ronvel