Skip to main content

Get Form Fields

The Get Form Fields API allows you to retrieve all fields defined in a specific form. This endpoint returns detailed information about each field including its unique identifier, full qualified name, type, display name, and organizational context within the form structure.

API Endpoint

GET {base_url}/ExtForm/forms/{formId}/fields

Path Parameters

ParameterTypeRequiredDescription
formIdstringYesUnique identifier of the form for which to retrieve fields

Request Headers

Authorization: Bearer {your_access_token}

Response

The response contains a list of all fields in the specified form, including their identifiers, types, and organizational structure.

Response Structure

{
"statusCode": 200,
"messages": [
"Processed successfully"
],
"result": {
"count": 50,
"fields": [
{
"fieldId": "3c2403cd-7067-4c08-821b-9fb2e5751c4f",
"fqName": "Page_Section_FieldName",
"fieldType": "DatePicker",
"fieldName": "Date of Birth",
"sectionName": "Personal Information",
"pageName": "Customer Details",
"isRequired": true
},
// ... more fields
]
}
}

Response Fields

FieldTypeDescription
countintegerTotal number of fields in the form
fieldsarrayList of field objects

Field Object Properties

PropertyTypeDescription
fieldIdstringUnique identifier of the field
fqNamestringFully qualified name in format "PageName_SectionName_FieldName"
fieldTypestringField type from FieldTypeEnum (e.g., "Text", "DatePicker", "MultiOptionsCheckBox")
fieldNamestringDisplay name of the field
sectionNamestringName of the section containing the field
pageNamestringName of the page containing the field
isRequiredbooleanIndicates whether the field is required or not

Example Usage

Request

GET {base_url}/ExtForm/forms/f4e72dba-7b5c-8g7h-9i8j-12k34l56m78n/fields
Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...

Response

{
"statusCode": 200,
"messages": [
"Processed successfully"
],
"result": {
"count": 3,
"fields": [
{
"fieldId": "3c2403cd-7067-4c08-821b-9fb2e5751c4f",
"fqName": "PersonalInfo_Details_DateOfBirth",
"fieldType": "DatePicker",
"fieldName": "Date of Birth",
"sectionName": "Details",
"pageName": "PersonalInfo",
"isRequired": true
},
{
"fieldId": "5d10fd74-658b-41d5-8fed-2d60d52a89c0",
"fqName": "PersonalInfo_Details_Address",
"fieldType": "UserAddress",
"fieldName": "Address Details",
"sectionName": "Details",
"pageName": "PersonalInfo",
"isRequired": false
},
{
"fieldId": "308fec76-b67f-45ec-81e2-06cff19b7c35",
"fqName": "PersonalInfo_Identity_Passport",
"fieldType": "Passport",
"fieldName": "Passport",
"sectionName": "Identity",
"pageName": "PersonalInfo",
"isRequired": true
}
]
}
}

Notes

  • Use either the field id (fieldId) or the fully qualified name (fqName) when submitting answers through the Save Submission API
  • Fields are grouped by pages and sections to reflect the form's hierarchical structure
  • Field types determine the answer model required when submitting form responses
  • Some fields may have additional validation rules not exposed through this API

Error Handling

Status CodeDescriptionSolution
400Invalid formId formatCheck the format of your formId parameter
403Insufficient permissionsVerify your authentication token and permissions
404Form not foundConfirm the form exists and the formId is correct
500Server errorContact support if the error persists