All guides

Replit

Connect a form in a Replit App, then check its published deployment.

Select the existing form

Open the Replit App workspace, run the app and use Preview to locate the form. Tell Agent which component or HTML file contains the form. 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

After the workspace preview works, publish or republish the app using its existing deployment configuration. Open the published URL to check the deployed copy.

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