Create a new form

A new form can be created and configured by navigating to the Forms screen in your project and clicking the ‘Make a Form’ button.

iight-forms.png

Basic usage

You can start receiving submissions to your form by sending a POST request to the form endpoint: https://forms.iight.io/v1/**{form_id}** (replacing {form_id} with the provided form id).

HTML Example

<form method="POST" action="<https://forms.iight.io/v1/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx>">
	<input name="first_name" type="text" required />
	<input name="last_name" type="text" required />
	<input name="email" type="email" required />
	<button type="submit">Send</button>
</form>

Validation

iight will handle input validation. An example of this can be seen below.

Screen Shot 2024-07-11 at 13.47.20-fullpage.png

Successful request

Upon a successful request the following screen will be displayed.

Screen Shot 2024-07-11 at 13.47.40-fullpage.png

<aside> 📣

Coming soon We are working on new features to improve the customisability of the validation and success screens.

</aside>

Advanced usage

The forms API can also accept and return JSON data. This can be achieved by adding the following headers to the request:

JavaScript example