


Learn how to build CMS Unique Form Submissions in Webflow with clear step-by-step instructions, perfect for freelancers, designers, and Webflow beginners l
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.
<input type="hidden" id="item" name="item" value="">
name
attribute matches the field you want to capture, and the value
attribute is dynamically set to pull data from the CMS.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 {"path":"slug","type":"PlainText"\} }}">
To confirm that the hidden field is capturing the intended data:
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>