Using SmartForms is pretty easy and straightforward. First, you need an account, you can create one clicking on the button on the top bar, then you'll need to create a form endpoint, this process takes less than a minute to complete.
After that, you'll find your form endpoint on the Settings tab of the form panel. This endpoint can be called in many different ways: in a basic HTML form, using Ajax, using Axios, using Fetch, using anything that makes an HTTP request.
The most basic way to use it with a simple HTML form, you can do it simply by filling the action parameter of your form with your SmartForm endpoint. Below we show a example:
<!-- Set the action parameter to your FORM_ID. --> <form action="https://smartforms.dev/submit/FORM_ID" method="POST"> <!-- You can include any type of input here. Just don't forget to set the name parameter. --> <input type="text" name="name"> <input type="text" name="phone"> <input type="email" name="email"> <button type="submit">Send</button> </form>
IMPORTANT: Don't forget to fill the name parameter of your inputs, without it, the form data will not be sent to us, therefore we'll not be able to handle it.