Skip to main content

getAllForms

Get all form objects.

Forms?.getAllForms( langCode?, offset?, limit? );

Minimal example

const value = await Forms.getAllForms()
Schema

langCode: string
Language code. Default: "en_US"
example: "en_US"

offset: number
Parameter for pagination. Default: 0
example: 0

limit: number
Parameter for pagination. Default: 30
example: 30

This method retrieves all form objects from the API. It returns a Promise that resolves to an array of FormEntity objects.

Example response

[
{
"id": 9,
"attributeSetId": 20,
"type": "sing_in_up",
"localizeInfos": {
"title": "Registration",
"titleForSite": "",
"successMessage": "",
"unsuccessMessage": "",
"urlAddress": "",
"database": "0",
"script": "0"
},
"version": 0,
"position": 1,
"identifier": "reg",
"processingType": "script",
"templateId": null,
"attributes": [
{
"type": "string",
"marker": "email_reg",
"isLogin": true,
"isSignUp": false,
"position": 1,
"settings": {},
"isVisible": true,
"listTitles": [],
"validators": {
"emailInspectionValidator": true
},
"localizeInfos": {
"title": "email"
},
"additionalFields": [],
"isNotificationEmail": false,
"isNotificationPhoneSMS": null,
"isNotificationPhonePush": null
},
{
"type": "string",
"marker": "password_reg",
"isLogin": null,
"isSignUp": false,
"position": 2,
"settings": {},
"isVisible": true,
"listTitles": [],
"validators": {
"requiredValidator": {
"strict": true
},
"stringInspectionValidator": {
"stringMax": 0,
"stringMin": 0,
"stringLength": 0
}
},
"localizeInfos": {
"title": "password"
},
"additionalFields": [],
"isNotificationEmail": false,
"isNotificationPhoneSMS": null,
"isNotificationPhonePush": null
},
{
"type": "string",
"marker": "name_reg",
"isLogin": null,
"isSignUp": true,
"position": 3,
"settings": {},
"isVisible": true,
"listTitles": [],
"validators": {},
"localizeInfos": {
"title": "name"
},
"additionalFields": [],
"isNotificationEmail": false,
"isNotificationPhoneSMS": null,
"isNotificationPhonePush": null
},
"..."
]
},
{
"id": 11,
"attributeSetId": 28,
"type": "data",
"localizeInfos": {
"title": "Schedule",
"titleForSite": "",
"successMessage": "",
"unsuccessMessage": "",
"urlAddress": "",
"database": "0",
"script": "0"
},
"version": 0,
"position": 2,
"identifier": "schedule_form",
"processingType": "script",
"templateId": null,
"attributes": [
{
"type": "timeInterval",
"marker": "schedule",
"isLogin": null,
"isSignUp": null,
"position": 1,
"settings": {},
"isVisible": true,
"listTitles": [],
"validators": {},
"localizeInfos": {
"title": "Schedule",
"intervals": [
{
"id": "f88c8793-798d-4fb1-9f8f-7b2013bcf04f",
"range": [
"2025-05-07T21:00:00.000Z",
"2025-05-07T21:00:00.000Z"
],
"external": [],
"intervals": [
{
"id": "47851bf0-1d39-422f-a155-3a6ba1d00a13",
"end": {
"hours": 12,
"minutes": 0
},
"start": {
"hours": 9,
"minutes": 0
},
"period": 60
}
],
"inEveryWeek": true,
"inEveryMonth": true
}
]
},
"additionalFields": [],
"isNotificationEmail": null,
"isNotificationPhoneSMS": null,
"isNotificationPhonePush": null
}
]
},
{
"id": 10,
"attributeSetId": 16,
"type": null,
"localizeInfos": {
"title": "Collection form ru_RU",
"titleForSite": "",
"successMessage": "",
"unsuccessMessage": "",
"urlAddress": "",
"database": "0",
"script": "0"
},
"version": 0,
"position": 3,
"identifier": "collection_form",
"processingType": "script",
"templateId": null,
"attributes": {}
},
"..."
]
Schema

id: number
The identifier of the object.
example: 12345

attributeSetId: number | null
The identifier of the attribute set being used, or null if not applicable.
example: 1234

type: string | null
Form type.
example: "contact"

localizeInfos: ILocalizeInfo
The name of the form, taking into account localization.
example:

{
"key": "value"
}

version: number
The version number of the object.
example: 1

position: number
The position of the object.
example: 1

identifier: string
The textual identifier for the record field.
example: "form_contact_us"

processingType: string
Type of form processing.
example: "async"

templateId: number | null
The identifier of the template used by the form, or null if no template is used.
example: 6789

attributes: IAttributes[] | Record<string, any>
The attributes of the form, which can be an array of attribute objects or a record of key-value pairs.
example:

{
"key": "value"
}