Search.../

updateMessages( )

Updates draft form messages, as displayed in the Wix UI before, during, and after the registration flow. Configurable messages include form titles, response labels, "thank you" messages, and call-to-action texts.

Admin Method

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

Syntax

function updateMessages(eventId: string, options: UpdateMessagesOptions): Promise<UpdateMessagesResponse>

updateMessages Parameters

NAME
TYPE
DESCRIPTION
eventId
string

Event ID to which the form belongs.

options
Optional
UpdateMessagesOptions

Optional fields.

Returns

Return Type:

Promise<
UpdateMessagesResponse
>
NAME
TYPE
DESCRIPTION
form
Form

Modified draft event form.

Was this helpful?

updateMessages example

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