Div Block
for the modal, set it to fixed
position, hidden
visibility, and a semi-transparent background.Div Block
inside for modal content and insert an Embed Element with the HTML form inside.visible
and opacity to 100%
).To embed an HTML form inside a modal in Webflow, follow these steps:
Div Block
and give it a class like modal-wrapper
.flex
and position to fixed
(top: 0, left: 0, width: 100vw, height: 100vh).hidden
by default and background color to rgba(0,0,0,0.5)
.Div Block
for the modal content (e.g., class modal-content
).Drag an Embed Element inside the modal-content
.
Insert your custom HTML form inside the embed field:
```html
\`\`\`Note: Ensure the action
points to a valid form processing URL (e.g., Webflow Forms, third-party service).
modal-content
, add a close button (X
).Embed the HTML form inside a Webflow modal, control its visibility with interactions, and ensure the form’s submission endpoint works properly.