Search.../

bulkMarkSubmissionsAsSeen( )

Developer Preview

Marks form submissions as seen by site collaborators with manage submission permissions.

Admin Method

This function requires elevated permissions to run. This function is not universal and runs only on the backend.

Syntax

function bulkMarkSubmissionsAsSeen(ids: Array<string>, formId: string): Promise<void>

bulkMarkSubmissionsAsSeen Parameters

NAME
TYPE
DESCRIPTION
ids
Array<
string
>

Submission IDs to mark as seen.

formId
string

ID of the form which the submissions belongs to.

Returns

Return Type:

Promise<
void
>

Was this helpful?

bulkMarkSubmissionsAsSeen example

Copy Code
1import { submissions } from 'wix-forms.v2';
2
3 async function bulkMarkSubmissionsAsSeen(ids, formId) {
4 try {
5 const result = await submissions.bulkMarkSubmissionsAsSeen(ids, formId);
6
7 return result;
8 } catch (error) {
9 console.error(error);
10 // Handle the error
11 }
12 }
13