Job application

Standard job application with role and resume details.

Fields

Full nametextrequiredEmailemailrequiredPhonetelPosition applied fortextrequiredYears of experienceselectLinkedIn / portfolio URLtextCover lettertextarea

Code

import { useState } from "react";

export function JobApplicationForm() {
  const [sent, setSent] = useState(false);

  async function onSubmit(e: React.FormEvent<HTMLFormElement>) {
    e.preventDefault();
    const form = e.currentTarget;
    const res = await fetch("https://formward.eu/f/your-form-id", {
      method: "POST",
      headers: { Accept: "application/json" },
      body: new FormData(form),
    });
    if (res.ok) {
      setSent(true);
      form.reset();
    }
  }

  if (sent) return <p>Thanks! Your message has been sent.</p>;

  return (
    <form onSubmit={onSubmit}>
      <label htmlFor="name">Full name</label>
      <input type="text" name="name" id="name" required />
      <label htmlFor="email">Email</label>
      <input type="email" name="email" id="email" required />
      <label htmlFor="phone">Phone</label>
      <input type="tel" name="phone" id="phone" />
      <label htmlFor="position">Position applied for</label>
      <input type="text" name="position" id="position" required />
      <label htmlFor="experience">Years of experience</label>
      <select name="experience" id="experience">
        <option value="0-1">0-1</option>
        <option value="2-4">2-4</option>
        <option value="5-9">5-9</option>
        <option value="10+">10+</option>
      </select>
      <label htmlFor="linkedin">LinkedIn / portfolio URL</label>
      <input type="text" name="linkedin" id="linkedin" />
      <label htmlFor="cover_letter">Cover letter</label>
      <textarea name="cover_letter" id="cover_letter" />
      <input
        type="text"
        name="_gotcha"
        tabIndex={-1}
        autoComplete="off"
        style={{ position: "absolute", left: "-9999px" }}
        aria-hidden="true"
      />
      <button type="submit">Send</button>
    </form>
  );
}

Use this with Formward

Create a form, copy your endpoint, and replace https://formward.eu/f/your-form-id in the code above.

Job application template, copy-paste code | Formward