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.
This function requires elevated permissions and runs only on the backend and on dashboard pages.
function updateMessages(
eventId: string,
options: UpdateMessagesOptions,
): Promise<UpdateMessagesResponse>;
Event ID to which the form belongs.
Optional fields.
import { forms } from "wix-events.v2";
async function updateMessages(eventId, options) {
try {
const result = await forms.updateMessages(eventId, options);
return result;
} catch (error) {
console.error(error);
// Handle the error
}
}
This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.