> For the complete documentation index, see [llms.txt](https://docs.acpt.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.acpt.io/developers/functions/get_acpt_form_field_object.md).

# get\_acpt\_form\_field\_object

Get a form field object representation

Get a form field object representation.

### Usage

```php
$field = get_acpt_form_field_object([
    'formName'  => 'new-form',
    'fieldName' => 'email',
]);
```

### Parameters

| Parameter   | Type   | Required | Description          |
| ----------- | ------ | -------- | -------------------- |
| `formName`  | string | Required | The form name (slug) |
| `fieldName` | string | Required | The field name       |

### Return

| Type        | Description                                                                                |
| ----------- | ------------------------------------------------------------------------------------------ |
| `\stdClass` | An object representing the field, including its key, type, label, settings, and extra data |
| `null`      | If no matching field exists                                                                |
