When exporting a Webflow site, you may see an error alert about improperly configured forms. Here's how to address this without editing the Webflow JS file directly.
1. Disable Form Action in Webflow
- Go to Designer: Open your project in the Webflow Designer.
- Select a Form: Click on the form element that you want to adjust.
- Remove Form Action: In the Element Settings panel, find the Form Settings section and ensure the default action is disabled. This will prevent Webflow's handling of the form submission.
2. Use Custom Form Handling
- Add Custom Code: In the site header or footer, add a custom script to handle form submissions.
- This can be done through platforms like Mailchimp, Zapier, or any server-side endpoint you manage.
- Ensure that your custom script is set to prevent the default form submission, using JavaScript such as
event.preventDefault().
3. Re-Export the Site
- Export Your Project: Re-export the site from Webflow.
- Check for Alerts: Open the exported site in your browser to ensure the error alert does not display.
- Test Form Submission: Verify that form data is being sent correctly through your new handling method.
Summary
To remove the error alert about improperly configured forms on your exported Webflow site, disable the form action inside Webflow Design, implement a custom form handling mechanism, and then re-export the site. This ensures your forms function properly without editing the Webflow JS file directly.