Contact Forms
Handle storefront contact form submissions.
Updated
On this page
Overview
Accept contact form submissions from your storefront. Submissions are stored in the dashboard and can trigger email notifications.
SDK Usage
import dash from "@/lib/dash"
const { success, message, submission_id } = await dash.contact.submit({
name: "Jane Doe",
email: "jane@example.com",
content: "I have a question about my order...",
phone: "555-0123", // optional
subject: "Order Question", // optional
source_url: window.location.href, // optional
turnstile_token: "...", // optional captcha
})