> Portal Navigation: > > - Append `.md` to any URL under `https://dev.wix.com/docs/` to get its markdown version. > - Pages are either content pages (article or reference text) or menu pages (a list of links to child pages). > - To get a menu page, truncate any URL to a parent path and append `.md` (e.g. `https://dev.wix.com/docs/sdk.md`, `https://dev.wix.com/docs/sdk/core-modules.md`). > - Top-level index of all portals: https://dev.wix.com/docs/llms.txt > - Full concatenated docs: https://dev.wix.com/docs/llms-full.txt # Method name: confirmSubmission(submissionId: string) # Method package: wixFormsV2 # Method menu location: wixFormsV2 --> submissions --> confirmSubmission # Method Link: https://dev.wix.com/docs/velo/apis/wix-forms-v2/submissions/confirm-submission.md # Method Description: Confirms a submission. You can only confirm a submission that has a `PENDING` status. When using forms from the [Wix Pricing Plans](https://www.wix.com/app-market/paid-plans?referral=collection&appIndex=42&referralTag=made-by-wix&referralSectionName=made-by-wix) app, the default submission status is `PENDING`. When using forms from the [Wix Forms]() app, the default form submission status is `CONFIRMED`. You can change the default status for individual submissions using the `updateSubmission()` method. # Method Code Examples: *** Note: do not assume any prop names or enum values other than the ones in the example. ## Confirm a submission (dashboard page code) ```javascript import { submissions } from 'wix-forms.v2'; /* Sample submissionId value: "f8281b62-1b2f-45bf-ba7d-f041d7653d2d" */ export async function myConfirmSubmissionFunction(submissionId) { try { const submission = await submissions.confirmSubmission(submissionId); console.log('Success! Confirmed submission:', submission); return submission; } catch (error) { console.error(error); // Handle the error } } /* Promise resolves to: { "formId": "21bcb6c7-02b3-4ed1-b6db-7856094fac03", "namespace": "wix.form_app.form", "status": "CONFIRMED", "submissions": { "last_name": "McBride", "first_name": "Patsy" }, "revision": "4", "submitter": { "applicationId": "151e476a-715e-ec33-db9a-a7ff4d51f70a" }, "seen": true, "_id": "f8281b62-1b2f-45bf-ba7d-f041d7653d2d", "_createdDate": "2023-12-28T12:55:55.630Z", "_updatedDate": "2023-12-28T13:42:24.853Z" } */ ``` ## Confirm a submission (export from backend code) ```javascript import { Permissions, webMethod } from 'wix-web-module'; import { submissions } from 'wix-forms.v2'; import { elevate } from 'wix-auth'; /* Sample submissionId value: "f8281b62-1b2f-45bf-ba7d-f041d7653d2d" */ export const myConfirmSubmissionFunction = webMethod(Permissions.Anyone, async (submissionId) => { try { const elevatedConfirmSubmission = elevate(submissions.confirmSubmission); const submission = await elevatedConfirmSubmission(submissionId); console.log('Success! Confirmed submission:', submission); return submission; } catch (error) { console.error(error); // Handle the error } }); /* Promise resolves to: { "formId": "21bcb6c7-02b3-4ed1-b6db-7856094fac03", "namespace": "wix.form_app.form", "status": "CONFIRMED", "submissions": { "last_name": "McBride", "first_name": "Patsy" }, "revision": "4", "submitter": { "applicationId": "151e476a-715e-ec33-db9a-a7ff4d51f70a" }, "seen": true, "_id": "f8281b62-1b2f-45bf-ba7d-f041d7653d2d", "_createdDate": "2023-12-28T12:55:55.630Z", "_updatedDate": "2023-12-28T13:42:24.853Z" } */ ``` ---