You don’t really need JavaScript to implement your form’s backend, you can use HTML just fine as well. This makes working with Form Chimp even easier for people who aren’t comfortable with JavaScript yet.
We do however recommend implementing your form using JavaScript since it allows you to have more control over the experience and allows you to be extra fancy.
Here’s an HTML example for working with your form.
<form action="<https://api.formchimp.app/?form=**FORM_ID**&forward=/success.html>" method="post">
<!--Your inputs--->
</form>
action
attribute of your form’s API endpoint. The code above is provided to you in the Quick Set-Up section of the dashboard.form
query parameter would be your form’s ID.forward
query parameter is the page your form should forward the user to on successful submission. In this case, the user will be sent to the success.html
file once they fill out the form.<aside>
⚠️ The forward
parameter should be a route on your site!
</aside>