Course enrollment

Enroll students into a course.

Why these fields

  • Full name: Full name captures a short, searchable answer and is required to complete the request.
  • Email: Email provides a validated reply address and is required to complete the request.
  • Course: Course captures a short, searchable answer and is required to complete the request.
  • Preferred schedule: Preferred schedule keeps answers consistent for filtering and routing but remains optional.
  • Start date: Start date collects an unambiguous date but remains optional.

Fields

Full nametextrequiredEmailemailrequiredCoursetextrequiredPreferred scheduleselectStart datedate

Preview

Code

<!-- components/CourseEnrollmentForm.vue — auto-imported by Nuxt. -->
<script setup lang="ts">
import { ref } from "vue";

const sent = ref(false);

async function onSubmit(e: Event) {
  const form = e.target as HTMLFormElement;
  const res = await fetch("https://forms.formward.eu/f/your-form-id", {
    method: "POST",
    headers: { Accept: "application/json" },
    body: new FormData(form),
  });
  if (res.ok) {
    sent.value = true;
    form.reset();
  }
}
</script>

<template>
  <p v-if="sent">Thanks! Your message has been sent.</p>
  <form v-else @submit.prevent="onSubmit">
    <label for="name">Full name</label>
    <input type="text" name="name" id="name" required />
    <label for="email">Email</label>
    <input type="email" name="email" id="email" required />
    <label for="course">Course</label>
    <input type="text" name="course" id="course" required />
    <label for="schedule">Preferred schedule</label>
    <select name="schedule" id="schedule">
      <option value="Morning">Morning</option>
      <option value="Afternoon">Afternoon</option>
      <option value="Evening">Evening</option>
      <option value="Weekend">Weekend</option>
    </select>
    <label for="start_date">Start date</label>
    <input type="date" name="start_date" id="start_date" />
    <input type="text" name="_gotcha" tabindex="-1" autocomplete="off" style="position:absolute;left:-9999px" aria-hidden="true" />
    <button type="submit">Send</button>
  </form>
</template>

Customize before publishing

  • Remove fields you do not need and mark only essential answers as required.
  • Replace placeholder wording with terms your audience already understands.
  • Add your privacy notice, retention details and expected response time.
  • Test keyboard focus, validation errors and the confirmation state on mobile.

Use this with Formward

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

Course enrollment template, copy-paste code | Formward