Answers.Body: <p>You are close, the template loaded by the macro can be found in <code>craft/app/templates/_includes/forms/textarea.html</code>. It does have a <code>value</code> attribute, and a few others, for example:</p>
  
  <pre><code>{{ forms.textareaField({
      label:         "Submitted Subject"|t,
      id:            'submittedSubject',
      name:          'submittedSubject',
      instructions:  "Input your setting"|t,
      value:         settings.submittedSubject,
      rows:          4,
      cols:          50,
      errors:        settings.getErrors('submittedSubject'),
      maxlength:     250,
      showCharsLeft: true,
      autofocus:     settings.hasErrors('submittedSubject'),
  }) }}
  </code></pre>
  
  <p>All the form macros are defined in <code>craft/app/templates/_includes/forms.html</code>.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-09-09T09:43:18.100Z
Answers.Text: the reason why i didn't see the value attribute and the other ones was because i was actually using textArea instead of textareaField... this works wonders though, just as i wanted it to be.
Answers.UserDisplayName: N. Silvestrin
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-09-09T09:19:44.737Z
Answers.LastActivityDate: 2016-09-09T09:27:03.563Z
Answers.LastEditDate: 2016-09-09T09:27:03.563Z
Answers.UserDisplayName: Mike Pepper
Body: <p>I created a plugin settings page following the example shown <a href="https://craftcms.stackexchange.com/questions/5067/how-to-use-plugin-settings">here</a> but my entries need to include multilines (they are email bodies). My Twig template for the settings page is like this:</p>
  
  <pre><code>{% import "_includes/forms" as forms %}
  
  {{ forms.textField({
      label: "Submitted Subject"|t,
      id: 'submittedSubject',
      name: 'submittedSubject',
      instructions: "Input your setting"|t,
      value: settings.submittedSubject,
      errors: settings.getErrors('submittedSubject'),
      })
  }}
  </code></pre>
  
  <p>(this field is repeated 6 times).
  I tried using textAreas instead of textFields, but it doesn't have the same options and I don't think it works (doesn't have a value field). Also it doesn't help that there's barely any documentation for this. Is there a way for me to have multiline text inside the text field?</p>
  
Tags: <plugin-development><templating>
Title: Plugin settings multiline input field
ThreadText: # Plugin settings multiline input field
  
  (Asked by: username_0 on 2016-09-09)
  
  I created a plugin settings page following the example shown [here](https://craftcms.stackexchange.com/questions/5067/how-to-use-plugin-settings) but my entries need to include multilines (they are email bodies). My Twig template for the settings page is like this:
  
  ```
  {% import "_includes/forms" as forms %}
  
  {{ forms.textField({
      label: "Submitted Subject"|t,
      id: 'submittedSubject',
      name: 'submittedSubject',
      instructions: "Input your setting"|t,
      value: settings.submittedSubject,
      errors: settings.getErrors('submittedSubject'),
      })
  }}
  
  ```
  
  (this field is repeated 6 times).
  I tried using textAreas instead of textFields, but it doesn't have the same options and I don't think it works (doesn't have a value field). Also it doesn't help that there's barely any documentation for this. Is there a way for me to have multiline text inside the text field?
  
  **Tags:** plugin-development, templating
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2016-09-09. Score: 4 | Accepted answer
  
  You are close, the template loaded by the macro can be found in `craft/app/templates/_includes/forms/textarea.html`. It does have a `value` attribute, and a few others, for example:
  
  ```
  {{ forms.textareaField({
      label:         "Submitted Subject"|t,
      id:            'submittedSubject',
      name:          'submittedSubject',
      instructions:  "Input your setting"|t,
      value:         settings.submittedSubject,
      rows:          4,
      cols:          50,
      errors:        settings.getErrors('submittedSubject'),
      maxlength:     250,
      showCharsLeft: true,
      autofocus:     settings.hasErrors('submittedSubject'),
  }) }}
  
  ```
  
  All the form macros are defined in `craft/app/templates/_includes/forms.html`.
  
  > **Comments:**
  > **username_0**: the reason why i didn't see the value attribute and the other ones was because i was actually using textArea instead of textareaField... this works wonders though, just as i wanted it to be.  
  
  ---
  
  