Basic Setup
Everything you need to know to get started with Static Forms
Registration
To use Static Forms, you need to create a free account:
- Visit the registration page
- Enter your email address
- Verify your email through the link sent to your inbox
- Access your dashboard to get your API key
Understanding Your API Key
Your API key is a unique identifier that connects form submissions to your account. It's automatically generated when you create your account.
Important: Keep your API key secure. While it's safe to use in client-side forms, don't share it publicly or commit it to public repositories.
Basic Form Structure
Here's a complete example of a basic contact form:
Field Names
All form fields with a name attribute will be included in the email you receive. Use descriptive names for better organization:
| Field Name | Description |
|---|---|
| name | Contact's name |
| Contact's email address | |
| message | Message content |
| phone | Contact's phone number (optional) |
Handling Form Submission
After a successful submission, you have two options:
1. Redirect (Recommended)
Add a redirectTo field to send users to a thank you page:
2. JSON Response
For AJAX submissions, the API returns a JSON response. See Advanced Features for details.