-
Notifications
You must be signed in to change notification settings - Fork 0
Form Submissions
When a blueprint has Is Form enabled, the frontend shows a contact form and all submissions are stored in the database.
Navigate to the item with the form blueprint (e.g. the "Contact" page) and click the Submissions tab.
You'll see a list of all submissions with submission date, read/unread status, and all submitted field values.
Submissions start as unread. Click Mark as Read on the detail view. Unread submissions are highlighted in the list.
Click Delete on the detail view to permanently remove a submission.
Set Form Recipients on the blueprint to one or more email addresses (comma-separated). An email is sent to all recipients on each new submission.
Use the built-in component in your Blade template:
<x-marble::marble-form :item="$item">
<button type="submit">Send</button>
</x-marble::marble-form>For a custom form layout:
<form method="POST" action="{{ route('marble.form.submit') }}">
@csrf
<input type="hidden" name="item_id" value="{{ $item->id }}">
<input type="text" name="fields[name]" placeholder="Your Name" required>
<input type="email" name="fields[email]" placeholder="Email" required>
<textarea name="fields[message]" required></textarea>
<button type="submit">Send</button>
</form>After a successful submission, Marble either shows the Form Success Message or redirects to the Form Success Item (a thank-you page).