# PricesField::error()

> Creates an info field that shows an error message in place of a field that could not be created or rendered

- Source: `src/Form/Field.php#L101` <https://github.com/getkirby/kirby/blob/6.0.0-beta.1/src/Form/Field.php#L101>
- Inherited from Kirby, not part of the Merx API. See <https://getkirby.com/docs/reference>.

```php
PricesField::error(string $name, string $message, null|Kirby\Cms\ModelWithContent $model = null, null|Kirby\Form\Fields $siblings = null): Kirby\Form\Field\InfoField
```

## Parameters

| Name | Type | Default |
| --- | --- | --- |
| `$name` | `string` | `–` |
| `$message` | `string` | `–` |
| `$model` | `null\|Kirby\Cms\ModelWithContent` | `null` |
| `$siblings` | `null\|Kirby\Form\Fields` | `null` |

## Return type

`Kirby\Form\Field\InfoField`

## Parent class

`Wagnerwagner\Merx\PricesField` inherited from `Kirby\Form\Field`
