Lava Shortcode - Memo
Description
Display a multi-line text area for longer input or notes.
Documentation
This control displays a memo
Example Usage
{[ memo label:'memo' maxlength:'200' name:'textarea' row:'3' value:'Hello Ted!' isrequired:'true' ]}
Parameter List
This control supports the following parameters:
- label (memo) - The label to display above the control.
- showlabel (true) - Whether to display the label.
- rows (3) - The number of rows.
- maxlength - The max amount of characters allow
- name (memo) - The name for the memo control.
- value - The text to initially set the control to.
- isrequired (false) - Establishes whether giving a value is necessary.
- validationmessage (Please insert text) - Message to display when the value is not valid.
- additionalattributes - Additional attributes to include on the input control.
Markup
{[ rockcontrol id:'rc-{{ '' | UniqueIdentifier }}' label:'{{ label }}' showlabel:'{{ showlabel }}' controltype:'rock-text-box' isrequired:'{{ isrequired }}' validationmessage:'{{ validationmessage }}' ]}
<textarea name="{{ name }}" maxlength="{{ maxlength }}" rows="{{ rows }}" id="{{ id }}" class="form-control" {{ additionalattributes }} {% if isrequired == true %}required{% endif %}>{{ value }}</textarea>
{[ endrockcontrol ]}