Select the existing form
Open your project and navigate its preview to the page with the form. Tell Lovable which page and button to edit. 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.
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.
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
Try the form in the Lovable preview first. Use Publish and update the published site after editing. Open its public URL in a separate tab to check the published version.
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.