Skip to content

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

Schema

FieldTypeDescription
questionType"phone"Identifies this as a phone field
placeholderstringPlaceholder text for the input
phone.labels.countrycodestringLabel for the country code input
phone.labels.areacodestringLabel for the area code input
phone.labels.extensionstringLabel for the extension input
phone.isShowCountrycodebooleanShow the country code input
phone.isShowAreacodebooleanShow the area code input
phone.isShowExtensionbooleanShow the extension input
phone.maskbooleanApply an input mask
phone.maskPatternstring | nullMask pattern when mask is true
{
  "_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
  }
}