# give/4.18.0/src/Form/LegacyConsumer/templates/textarea.html.php

GiveWP – Donation Plugin and Fundraising Platform, version 4.18.0. 21 lines.

- Page: https://pluginprobe.com/plugins/give/4.18.0/code/src/Form/LegacyConsumer/templates/textarea.html.php
- Raw: https://pluginprobe.com/plugins/give/4.18.0/raw/src/Form/LegacyConsumer/templates/textarea.html.php
- Modified: 2021-11-23T23:55:18+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/give/4.18.0/code/src/Form/LegacyConsumer/templates/textarea.html.php#L10-L20`.

```php
<?php
/** @var Give\Framework\FieldsAPI\Textarea $field */ ?>
<?php
/** @var string $fieldIdAttribute */ ?>

<textarea
    name="<?php
    echo $field->getName(); ?>"
    id="<?php
    echo $fieldIdAttribute; ?>"
	<?php
    echo $field->isRequired() ? 'required' : ''; ?>
    <?php
    echo $field->isReadOnly() ? 'readonly' : ''; ?>
    <?php
    echo ($maxLength = $field->getMaxLength()) ? "maxlength=\"$maxLength\"" : ''; ?>
>
<?php
echo $field->getDefaultValue(); /* Whitespace is important. Do not indent. */ ?>
</textarea>

```
