Skip to main content

updateFormsDataByid

update form data by id.

Description

This method ...

FormData.updateFormsDataByid(

id*

);

Parameters schema

Schema

id(required): number
ID of the form data
example: 1

Examples

Minimal example

// 1. auth
const authData = [
{
marker: 'email',
value: 'test@test.ru',
},
{
marker: 'password',
value: '123456',
},
];
await AuthProvider.auth('email', {
authData,
});
// 2. update your formData by id
const result = await FormData.updateFormsDataByid(
1621, // FormData ID.
{
formIdentifier: 'test-form',
formModuleConfigId: 2,
moduleEntityIdentifier: 'blog',
replayTo: null,
status: 'sent',
formData: [
{
marker: 'name',
type: 'string',
value: 'Test 21',
},
],
},
);

Example response

{
"id": 1621,
"formIdentifier": "test-form",
"time": "2026-01-28T16:02:04.742Z",
"formData": [
{
"marker": "name",
"type": "string",
"value": "Test 21"
}
],
"userIdentifier": "test@test.ru",
"entityIdentifier": "blog",
"parentId": null,
"fingerprint": null,
"isUserAdmin": false,
"formModuleId": 2
}

Response schema

Schema: IFormsDataEntity

id: number
The unique identifier of the form page.
example: 12345

formIdentifier: string
The identifier of the form.
example: "contact_form"

time: string
The time of the form submit.
example: "2023-10-01T12:00:00Z"

formData: FormDataType[]
Form fields data.

userIdentifier: string
The user identifier.
example: null

entityIdentifier: string
The entity identifier.
example: "blog"

parentId: any
The parent identifier.
example: null

fingerprint: string
The fingerprint of the form.
example: null

isUserAdmin: boolean
Is user admin.
example: false

formModuleId: number
The form module identifier.
example: 2