Skip to content
Nadim Tuhin edited this page Aug 15, 2015 · 1 revision

If you want, your visitors should enter more than single line input, then use Textarea Text fields are used for single-line input whereas but Textarea takes both single and multi line input.

alt text

Preview

Arguments

Name Type Default Description
type string textarea This Value identifies the field type
name string A unique name required to define
label string Displays as field label
placeholder string Text to display in the input when no value is present
value string String that appears in the textarea input

Example Code

array(
      'name'  => 'title', // Required
      'type'  => '‘textarea’',
      'label' => 'Title', // Optional, name will use instead
      'placeholder' => 'Your title here', // Optional, name will use instead
      'value' => 'Let's make a better website together' // Default value
),