Shipping request
Request shipment of an order or item.
Fields
NametextrequiredEmailemailrequiredShipping addresstextarearequiredShipping methodselectNeeded bydate
Preview
Code
<!-- components/ShippingRequestForm.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://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">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="address">Shipping address</label>
<textarea name="address" id="address" required></textarea>
<label for="method">Shipping method</label>
<select name="method" id="method">
<option value="Standard">Standard</option>
<option value="Express">Express</option>
<option value="Overnight">Overnight</option>
</select>
<label for="needed_by">Needed by</label>
<input type="date" name="needed_by" id="needed_by" />
<input type="text" name="_gotcha" tabindex="-1" autocomplete="off" style="position:absolute;left:-9999px" aria-hidden="true" />
<button type="submit">Send</button>
</form>
</template>
Use this with Formward
Create a form, copy your endpoint, and replace https://formward.eu/f/your-form-id in the code above.