# Phone

Collects phone numbers with optional country code, area code, and extension fields.

## Schema

| Field | Type | Description |
|  --- | --- | --- |
| `questionType` | `"phone"` | Identifies this as a phone field |
| `placeholder` | string | Placeholder text for the input |
| `phone.labels.countrycode` | string | Label for the country code input |
| `phone.labels.areacode` | string | Label for the area code input |
| `phone.labels.extension` | string | Label for the extension input |
| `phone.isShowCountrycode` | boolean | Show the country code input |
| `phone.isShowAreacode` | boolean | Show the area code input |
| `phone.isShowExtension` | boolean | Show the extension input |
| `phone.mask` | boolean | Apply an input mask |
| `phone.maskPattern` | string | null | Mask pattern when `mask` is true |


```json
{
  "_id": "6a0ef5db3affac35058b05a8",
  "questionType": "phone",
  "question": "Phone number",
  "placeholder": "Enter Phone Number",
  "displayOrder": 3,
  "isRequired": false,
  "isDeleted": false,
  "isActive": true,
  "phone": {
    "labels": {
      "countrycode": "Country code",
      "areacode": "Area code",
      "extension": "Extension"
    },
    "isShowCountrycode": true,
    "isShowAreacode": true,
    "isShowExtension": true,
    "mask": false,
    "maskPattern": null
  }
}
```