Enhancing your Webflow CMS forms by incorporating hidden input fields allows you to capture dynamic data, leading to more personalized and informative email notifications. This tutorial will guide you through the process of adding hidden fields to your forms, enabling you to identify the specific CMS page from which each submission originates.
<input type="hidden" id="item" name="CHANGE_THIS" value="CHANGE_THIS">
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.