User / Level Icon
Intermediate
Gear Time Icon
Webflow
Time Icon
5
 Minutes

CMS Unique Form Submissions

Learn how to build CMS Unique Form Submissions in Webflow with clear step-by-step instructions, perfect for freelancers, designers, and Webflow beginners l

Copy Code

Understanding Hidden Input Fields in Webflow Forms

Hidden input fields are form elements that are not visible to users but can store data to be submitted with the form. In Webflow, adding hidden fields can help track information such as the page URL or CMS item associated with the form submission.​

Steps to Add Hidden Fields to Your Webflow CMS Forms

  1. Access Your Webflow Project:
    • Open your Webflow project and navigate to the CMS Collection page containing the form you want to modify.​
  2. Add an Embed Element:
    • Within the form block, drag an Embed element to the desired location. This will allow you to insert custom code.​
  3. Insert the Hidden Input Field Code:
    • In the Embed code editor, input the following HTML code:​Forum | Webflow
    • <input type="hidden" id="item" name="item" value="">
    • Ensure that the name attribute matches the field you want to capture, and the value attribute is dynamically set to pull data from the CMS.​
  4. Bind CMS Data to the Hidden Field:
    • Replace the value attribute with the appropriate CMS field. For example, if you want to capture the page URL, modify the code as follows:​
    • <input type="hidden" id="pageURL" name="pageURL" value="{{wf {&quot;path&quot;:&quot;slug&quot;,&quot;type&quot;:&quot;PlainText&quot;\} }}">
    • This setup dynamically assigns the page's slug to the hidden field.​
  5. Save and Publish Your Changes:
    • After embedding the code, save your changes and publish the site to ensure the hidden field functions correctly.​

Verifying the Functionality

To confirm that the hidden field is capturing the intended data:​

  • Submit a Test Form:
    • Navigate to the live site and complete the form to generate a submission.​
  • Check the Form Submission Data:
    • Access the form submissions through Webflow's dashboard or your email notifications to verify that the hidden field's data is correctly included.​
By following these steps, you can effectively incorporate hidden fields into your Webflow CMS forms, enabling dynamic data capture and enhancing the personalization of your email notifications.

<script type="application/ld+json">
{
 "@context": "https://schema.org",
 "@type": "HowTo",
 "name": "How to Add Hidden Input Fields in Webflow Forms",
 "description": "Learn how to add hidden input fields in Webflow CMS forms to track page URLs or CMS item data and enhance form submission accuracy.",
 "step": [
   {
     "@type": "HowToStep",
     "name": "Access Your Webflow Project",
     "text": "Open your Webflow project and navigate to the CMS Collection page containing the form you want to modify."
   },
   {
     "@type": "HowToStep",
     "name": "Add an Embed Element",
     "text": "Within the form block, drag an Embed element to the desired location. This allows you to insert custom HTML code."
   },
   {
     "@type": "HowToStep",
     "name": "Insert the Hidden Input Field Code",
     "text": "In the Embed code editor, input HTML like <input type='hidden' id='item' name='item' value=''> to capture hidden data."
   },
   {
     "@type": "HowToStep",
     "name": "Bind CMS Data to the Hidden Field",
     "text": "Replace the value attribute with a CMS field binding. For example, use the page slug with <input type='hidden' id='pageURL' name='pageURL' value='{{wf {\"path\":\"slug\",\"type\":\"PlainText\"} }}'>"
   },
   {
     "@type": "HowToStep",
     "name": "Save and Publish Your Changes",
     "text": "Save your Webflow changes and publish the site to activate the hidden input functionality."
   },
   {
     "@type": "HowToStep",
     "name": "Verify the Functionality",
     "text": "Submit a test form and check Webflow’s form submissions or your email to confirm the hidden field is working."
   }
 ],
 "tool": [
   {
     "@type": "HowToTool",
     "name": "Webflow Embed Element"
   }
 ],
 "totalTime": "PT5M",
 "supply": [
   {
     "@type": "HowToSupply",
     "name": "Webflow CMS Collection Page"
   }
 ]
}
</script>

Frequently Asked Questions

What is a CMS Unique Form Submissions in Webflow?

A CMS Unique Form Submissions in Webflow is a custom-built feature or layout element that improves the design or functionality of your website. This tutorial shows you how to build one step by step.

Why should I use a CMS Unique Form Submissions instead of Webflow's default components?

Custom CMS Unique Form Submissions components give you more control over style, interaction, and responsiveness, making your website more unique and tailored to your brand.

Is this CMS Unique Form Submissions tutorial beginner-friendly?

Yes! This CMS Unique Form Submissions tutorial is designed for beginners and intermediate users. It includes clear explanations and visuals to help you follow along.

Can I use this CMS Unique Form Submissions with Webflow CMS?

Absolutely. This tutorial will show you how to adapt the CMS Unique Form Submissions for dynamic CMS content, making it reusable across your website.

Does this CMS Unique Form Submissions tutorial include best practices for SEO and performance?

Yes, the tutorial covers how to make your CMS Unique Form Submissions both SEO-optimized and lightweight to maintain fast load speeds and proper accessibility.
Have Any Further Questions?
I'm Always Down To Help.
Contact Me

You Might Also Like...

View All Tutorials