The Quick Start Guide
This guide will walk you through creating your first form with Easy Forms. We'll create a simple contact form to demonstrate how easy it is to get started. First all make sure your've followed and completed the installation guide.
Step 1: Create a Form in Statamic
First, create a form in the Statamic control panel:
- Go to Forms in the Statamic control panel
- Click Create Form
- Give it a name, for example, "Contact Form"
- Take note of the auto-generated handle
Step 2: Add Form Fields
Edit your form's blueprint and add some fields.
Step 3: Render the Form
In your template, add the Easy Forms tag wherever you want the form to appear:
antlers
{{ easyform handle="contact_form" }}That's it! Your form is now rendered and is working just fine!
Step 4: Configure Email Notifications (Optional)
To receive email notifications when someone submits the form:
- In the Statamic control panel, go to your form settings
- Configure the Email section:
- Recipient: Your email address
- Subject: Contact Form Submission
- From: Configure the sender details
- Select the
vendor/statamic-easy-forms/emails/form-submissionemail template.
Step 5: Test Your Form
- Visit the page where you added the form tag
- Fill out the form fields
- Submit the form
- Check your form submissions in the Statamic control panel under Forms and your emails for an email containing all data.