Getting started
Special fields
Fields that change how Lazyform handles a submission, like the email subject, reply-to address, redirect and honeypot.
Every field you send is stored and shown in your email as label and value, in the order you sent them. A few names are special: they change how we handle the submission and are not stored with the data.
All of them are optional except the access key.
The fields
| Field | What it does |
|---|---|
access_key |
Your form's key (lf_…). Required, unless the key is in the URL (/f/YOUR_ACCESS_KEY). |
subject |
The subject of the notification email for this submission. Overrides the subject set in the dashboard. |
from_name |
The sender name shown in the notification email, e.g. your site's name. |
replyto or reply_to |
The address your replies go to. If you leave it out, we use the field set in the form's settings, which is email by default. |
redirect |
A URL to send the visitor to after a normal (non-JavaScript) post. See redirects. |
cc |
Extra recipients, comma-separated. Each must be an email you've verified in the dashboard. Pro plan. |
botcheck |
The honeypot. Must arrive empty. The name can be changed in the form's settings. See spam protection. |
_lf_started |
When the form was shown (Unix milliseconds). Used by the time trap. The SDK and widget add it for you. |
_lf_visit |
A visit id from the widget, used to link an unfinished submission to the final one. |
cf-turnstile-response, h-captcha-response, g-recaptcha-response |
Captcha tokens. Added by the captcha widget; checked when the form has that captcha connected. |
Examples
A clear email subject
Useful when several forms share one inbox. To include what people typed in the subject, set the subject in the form's settings in the dashboard instead, with {{field}} placeholders such as New message from {{name}}.
<input type="hidden" name="subject" value="New enquiry from the pricing page">
<input type="hidden" name="from_name" value="Acme website">Reply straight to the visitor
By default, pressing Reply in your email client answers the address in the email field. If your email field has another name, either change the reply-to field in the form's settings, or set replyto with JavaScript before sending:
const data = new FormData(form)
data.set('replyto', data.get('work_email'))Checkboxes and repeated names
Fields with the same name are joined with a comma and a space, so a group of checkboxes arrives as one readable value:
<label><input type="checkbox" name="interests" value="Design"> Design</label>
<label><input type="checkbox" name="interests" value="Development"> Development</label>
<!-- Arrives as: interests = "Design, Development" -->Your own fields
Name your fields however you like: name, company, budget, How did you hear about us?. They're all stored and delivered as they are. A submission needs at least one field besides the special ones, otherwise you get empty_submission.
Limits
- Up to 100 KB per submission without files, 30 MB with files.
- Files: up to 5 per submission, 25 MB each, on Pro and Business. See file uploads.