All guides

v0

Wire a v0 form component to Wiztrom and verify the published Vercel deployment.

Select the existing form

Open the v0 project and identify the component containing the submit button. For a Next.js App Router project, put browser event handling inside a client component with the use client directive. In Wiztrom, open Forms and choose Setup for the destination form. Replace YOUR_FORM_ID with its ID. The example uses the Contact template. For a different template, use its exported field names and include every required field.

Give the builder a precise edit

Paste the instruction below and substitute your form URL and field list. Keep the endpoint visible in the form action so you can inspect it after publishing.

Prompt
Update only the contact form. Keep its layout and labels.
Set its action to https://forms.wiztrom.com/f/YOUR_FORM_ID and its method to POST.
Use named controls for name, email and message; require all three.
Replace the existing submit handler with a single fetch using
FormData and an Accept: application/json header. Prevent the
default submit while this handler runs. Disable Send while pending.
Show success and clear the form only after a 201 with a receipt ID.
On error, keep all values, show an accessible inline error and
re-enable Send. Remove the old mock success or duplicate request.

Review the generated request

Compare the generated code with this helper. Pass the actual form element from the submit handler. Let the browser supply the multipart Content-Type header. Include a status region so a visitor hears the result.

JavaScript
async function sendToWiztrom(form) {
  const response = await fetch(form.action, {
    method: 'POST',
    headers: { Accept: 'application/json' },
    body: new FormData(form)
  });
  const receipt = await response.json();
  if (response.status !== 201 || typeof receipt.id !== 'string' || !receipt.id) {
    throw new Error(receipt.error || 'Submission could not be confirmed.');
  }
  return receipt.id;
}

Publish the change

Preview the updated component in v0. Publish the project to Vercel, wait for the deployment to finish, then open the production domain at the form route.

Find the published submission

Open the published page as a visitor. Send a message with a distinctive subject or phrase. Open the same form in your Wiztrom inbox and match the phrase and sender. If you enabled a notification, open Deliveries and check its destination, time and status.

References