Collect your first form submission in just 5 minutes.
Create a Project
To get started, create a new project with the URL of the website where you want to accept submissions. Later, there will be a section on testing for a development setup.
Add BetterForm to Code
Next, copy and paste the script tag into any page where you want BetterForm to capture submissions. We strongly recommend leaving async and defer for optimized website performance. We will still capture any forms submitted to those pages!
Finally, add name attributes to all inputs that you want to submit to your project.
Show Submission Status
To indicate to the user if the submission was successful, create HTML elements and add the appropriate attribute to make them visible after submission. The HTML elements must be inside the form to be displayed. Ensure the element is hidden by default with style="display: none".
Submit your form from localhost for development testing. We will validate that everything is set up properly and return success if it works as expected.
That's it 🎉 You're ready to launch your website and start receiving submissions.
Example Form
<!DOCTYPEhtml><htmllang="en"> <head> <title>Document</title> <scriptasyncdefersrc="https://betterform.io/embed.js"></script> </head> <body> <formbetterform><!-- Form Name --> <inputtype="hidden"name="form[name]"value="Contact Form" /> <inputtype="text"name="Name"placeholder="Name" /> <inputtype="email"name="Email"placeholder="Email" /> <inputtype="text"name="Message" /><!-- Success Message --> <divdata-bf-successstyle="display: none"> <p>Thank you for reaching out. We will get back to you shortly.</p> </div><!-- Error Message Message --> <divdata-bf-successstyle="display: none"> <p>Something with wrong! Please try again later</p> </div> <buttontype="submit">Submit</button> </form> </body></html>
Add semantic name attributes to easily view your submissions