How to add a contact form to your website
You need a way for visitors to contact you, but you do not need to build a form backend yourself. A WidgetFlow contact form widget gives an existing website a form and sends submissions to your workspace.
You will need a WidgetFlow account and permission to add a script to your published website. Some website builders restrict custom code by plan or user role; check that access before starting.
1. Choose the information you need
For a general inquiry, start with an email address and a message. Add a name if it helps your follow-up. Ask for a phone number, company, or project budget only when that information is useful for the response.
Use clear labels and mark the fields you need as required. For example, a service business could ask for a project description and an email address, while leaving the phone number optional. For more detailed sales inquiries, consider a quote request widget.
2. Build and activate the widget
Create an account, open Widgets, and create a contact form widget. Use the visual builder to set the fields, required status, labels, and appearance. Preview the form at a narrow screen width as well as on desktop.
Save the widget and make sure its status is Active before installing it. The Free public-beta plan includes up to 5 widgets and 250 submissions per month. Check the current plan details before using it for a busy site.
3. Add the embed code to your site
Open Installation in your WidgetFlow dashboard, select the widget, and copy its generated embed code. You can also use Get embed code from the widget list. Copy the script for that specific widget; a preview URL is not an installation code.
The code follows this structure. This example contains a placeholder: replace it by copying your own code from WidgetFlow.
<script
src="https://mywidgetflow.vercel.app/widget.min.js"
data-widget-id="YOUR_WIDGET_EMBED_ID"
async
></script>On an HTML website, paste the script before the closing </body> tag. On a website builder or CMS, use its supported custom-code or footer-code area. On WordPress, use an appropriate footer-code tool or theme facility. Choose a location that allows scripts rather than a text block that displays the code as content.
Save and publish the website, then open the published page. Clear any site or CDN cache if the script is missing. Add the script once per page, even if several templates share the same footer.
4. Test a real submission
Open the published page in a private browser window. Open the widget, fill it with clearly labeled test information you control, and submit it. In WidgetFlow, check that the submission appears in the correct workspace’s Leads area.
Repeat the check on a phone. Confirm that the launcher does not cover an important button, that field labels are readable, and that you can reach the submit button. Check any configured notification separately: a form appearing on the page does not prove that notifications are being delivered.
The Installation page also offers a configuration check and a live page check. A successful render check confirms the widget loaded and appeared; it does not test form submission or lead delivery. Use your real test submission for that final step.
If the form does not appear
- Confirm the widget is Active and that you copied the correct embed ID.
- Check the published page, not only the editor preview. Some platforms do not run custom scripts inside their editor.
- Inspect the browser console for blocked-script or Content Security Policy errors. Your site must permit the WidgetFlow script and its API requests.
- Check whether a consent manager, extension, or cached page is preventing the script from running.
- If the live page check fails, test the published page directly. Some sites prevent iframe previews even when their installed widget works.
If you need help, contact the WidgetFlow team with the page URL and a description of what happened. Do not include passwords, provider keys, or private customer submissions.