Skip to main content
Sabo’s contact page features a two-column layout with informational text on the left and an interactive form on the right. This guide covers how to customize all frontend aspects of the form. File Location: src/components/marketing/contact-form.tsx

How to Customize

Editing the Informational Column (Left)

The left column contains your contact details and introductory text. You can edit this information directly in the JSX.
src/components/marketing/contact-form.tsx

Customizing the Form (Right Column)

The right column contains the form itself. You can customize its validation rules, submission feedback, and compliance text.

Adjusting Validation Rules

Client-side validation is handled by Zod. The validation schema, contactFormSchema, is at the top of the file. You can change rules like making a field optional or increasing a minimum length.
src/components/marketing/contact-form.tsx

Customizing Submission Messages (Toasts)

After a user submits the form, a “toast” notification appears to confirm success or failure. These messages are located in the onSubmit function and can be customized.
src/components/marketing/contact-form.tsx

Editing Compliance Text

The text displayed below the submit button (e.g., GDPR, ISO) can be edited at the bottom of the component.
src/components/marketing/contact-form.tsx
To customize what happens after the form is submitted (e.g., sending an email), see the Contact Form API Reference.