All guides

Qwik City

Render a Qwik City contact page that works before any client event handler loads.

Copy your endpoint

Open your form in Wiztrom and copy its endpoint from Setup. Replace the example URL with that address. If you created your form from a template, use the field names and required fields from its Setup HTML.

Create src/routes/contact/index.tsx

Export a Qwik component for the route. The input controls use a native form action and require no routeAction$ or client handler.

TSX
import { component$ } from '@builder.io/qwik';

export default component$(() => (
  <form action="https://forms.wiztrom.com/f/YOUR_FORM_ID" method="post">
    <label>Name <input name="name" required /></label>
    <label>Email <input name="email" type="email" required /></label>
    <label>Message <textarea name="message" required></textarea></label>
    <button type="submit">Send message</button>
  </form>
));

Visit the published route

Build with your Qwik adapter and open /contact/. If you adapted an existing form, remove preventdefault:submit or an action-bound Form component from this form.

Find the test in your inbox

On the published page, leave a required field empty and try Send. Fill it in, enter a distinctive test message and submit once. Open the form’s Wiztrom inbox and match the submitted values. If you enabled a notification, open delivery history and check its result.

References