Written by: Geoffrey Callaghan

A Quick Start Guide to Manage Webflow Forms

A Quick Start Guide To Manage Webflow Forms

Managing Webflow forms using Fabform can significantly enhance your form submission handling by adding features like spam prevention, email notifications, and data management without requiring server-side code. Here’s a quick start guide to help you integrate and manage Webflow forms using Fabform:

Step 1: Set Up Your Fabform Account

  1. Sign Up: Go to the Fabform website and create an account.
  2. Create a New Form: Log in to your Fabform account and create a new form. This will generate a unique form endpoint URL.

Step 2: Create or Edit Your Form in Webflow

  1. Open Webflow Designer: Log in to your Webflow account and open the project where you want to add the form.
  2. Add Form Elements: Create a new form or select an existing form. Ensure that your form includes essential fields like name, email, and message.

Step 3: Configure Form Action URL

  1. Select Form Element: In Webflow Designer, click on the form to select it.

  2. Set Form Action URL: In the settings panel, find the form settings and set the action URL to the Fabform endpoint URL you obtained in Step 1.

    Example:

    https://fabform.io/f/your-form-id

    Replace your-form-id with the actual ID provided by Fabform.

Step 4: Integrate Spam Prevention

Add a Honeypot Field

  1. Add Custom Code: In Webflow Designer, add an HTML Embed element to your form and include a hidden honeypot field.

    Example:

    <div style="display: none;">
        <input type="text" name="honeypot" value="">
    </div>

Add Google reCAPTCHA

  1. Enable reCAPTCHA in Webflow: In the form settings, enable reCAPTCHA.
  2. Add Site Key: Add your Google reCAPTCHA site key in the form settings.

Step 5: Configure Fabform to Send Email Notifications

  1. Log In to Fabform: Access your Fabform dashboard and navigate to the form settings for the form you created.
  2. Email Notifications: Enable email notifications and specify the recipient email addresses where you want to receive form submissions.

Step 6: Customize Form Handling with JavaScript (Optional)

If you want to add custom validation or handling logic, you can include JavaScript in your Webflow project.

  1. Add Custom Code: In Webflow Designer, add an HTML Embed element at the end of the body section of your form.

  2. Include Fabform Initialization Script:

    <script src="https://fabform.io/js/fabform.js"></script>
    <script>
        document.addEventListener('DOMContentLoaded', function() {
            Fabform.init({
                beforeSubmit: function(formData) {
                    // Honeypot validation
                    if (formData.honeypot) {
                        console.log('Bot detected.');
                        return false; // Prevent form submission
                    }
                    // Additional custom validation can go here
                    return true; // Allow form submission
                }
            });
        });
    </script>

Step 7: Test Your Form

  1. Publish Your Webflow Site: Publish your changes in Webflow.
  2. Submit a Test Entry: Fill out and submit the form to ensure it works correctly.
  3. Check Email and Dashboard: Verify that you receive the email notifications and that the submission appears in the Fabform dashboard.

Conclusion

By following this quick start guide, you can seamlessly manage Webflow forms using Fabform. This integration allows you to handle form submissions more effectively, with features like spam prevention, email notifications, and data management, all without needing to write server-side code. This setup ensures a smooth and efficient form handling experience for both you and your users.