Add a contact form to any HTML website with a single script tag. No server code, no backend setup.
Log in to your codaForms dashboard and create a new form. Use the drag-and-drop builder to add fields like name, email, and message.
After saving your form, you'll see an embed code that looks like this:
<script src="https://codasite.ai/forms-embed.js" data-form="cf_xxxxx"></script> Paste the script tag anywhere in your HTML where you want the form to appear:
<!DOCTYPE html>
<html>
<head>
<title>Contact Us</title>
</head>
<body>
<h1>Contact Us</h1>
<!-- Your codaForms form -->
<script src="https://codasite.ai/forms-embed.js" data-form="cf_xxxxx"></script>
</body>
</html> That's it! The form will automatically render with styling that matches light or dark mode.
Use the data-theme attribute to pin the form to
one theme.
<!-- Force dark mode -->
<script src="https://codasite.ai/forms-embed.js" data-form="cf_xxxxx" data-theme="dark"></script>
<!-- Force light mode -->
<script src="https://codasite.ai/forms-embed.js" data-form="cf_xxxxx" data-theme="light"></script>
Use data-container to place the form inside a specific
element.
<div id="contact-form"></div>
<script
src="https://codasite.ai/forms-embed.js"
data-form="cf_xxxxx"
data-container="contact-form">
</script> When someone submits the form:
Free account, unlimited forms, 500 submissions/mo.