value=""
attributes or inside <textarea>...</textarea>
, ensuring the embed is within a CMS context for bindings to work.If you want to pre-populate a form input or text field with CMS data in Webflow, you can do so using an HTML Embed component within a Collection Page or Collection List. This method allows dynamic CMS fields to be inserted inside form fields via custom code.
Here’s how to do it:
Use Webflow’s Add Field button (the purple + Add Field
within the HTML Embed modal) while editing the <input>
or <textarea>
tag attributes.
Example for a paragraph text or textarea pre-filled with a CMS field:
```html
\`\`\`Or for a single-line <input>
:
```html
\`\`\`Replace your-cms-field-name
with the actual Slug (not label) of your CMS field.
This workaround only works inside CMS context, such as:
A Collection Page (e.g., /blog-post)
A Collection List on any page
If used outside CMS scope, the dynamic bindings won’t appear.
<input>
by including class="your-webflow-class"
and style that class in Designer.To auto-populate form input or paragraph fields with CMS content, use an HTML Embed block inside a CMS Collection context. Insert the dynamic CMS fields using Webflow’s field binding inside standard form element attributes like value=""
or between <textarea>...</textarea>
. This method bypasses Webflow's form limitations using custom code inside the CMS-aware context.