Introduction
Render all your forms in 1 line, with new input fields and with the power of Livewire.
#Example
Statamic forms are rendered in 1 line, using the <livewire:statamic-form> tag.
<livewire:statamic-form in="contact_form" />
The rendering of the form is done by:
Extracting the layout and field from the blueprint, based on the value of the
inattribute.Rendering the fields with files inside
/resources/vendor/statamic/forms/fields, the same way Statamic renders forms.Tying the fields to Laravel validation rules that Livewire will test upon submitting the form.
Here is an example of a simple form for your users to contact you. It implements a few simple fields with validation.
This specific form and the other forms on this site are just demonstration, so nothing is saved upon submission.
The forms you create for your site, of course, save data into Statamic's form submissions.