Change order
Request changes to an existing project or contract.
Fields
NametextrequiredEmailemailrequiredProject / contract numbertextrequiredRequested changetextarearequiredEstimated cost impactnumberNeeded bydate
Code
import { useState } from "react";
export function ChangeOrderForm() {
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">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="project">Project / contract number</label>
<input type="text" name="project" id="project" required />
<label htmlFor="description">Requested change</label>
<textarea name="description" id="description" required />
<label htmlFor="cost_impact">Estimated cost impact</label>
<input type="number" name="cost_impact" id="cost_impact" />
<label htmlFor="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>
);
}
Use this with Formward
Create a form, copy your endpoint, and replace https://formward.eu/f/your-form-id in the code above.