Proper way to submit netlify forms with SSR frameworks like svelte / sapper

Hello again!

The solution here was indeed that the values were wrong! Huge ultra massive props to @jen for the solution!

I simply used an ES6 variable casting dealio.

<script>
let form;
let submitForm =(event)=>{
    let formdata = new FormData();
    formdata.append('name',`${user.name}`); //notice we cast the store values as strings with the `${var}` syntax
    formdata.append('email',`${user.email}`);
    formdata.append('telephone',`${user.telephone}`);
        fetch("/contact/", {
        method: "POST",
        headers: { "Content-Type": "application/x-www-form-urlencoded" },
        body: formdata,
      })
        .then(() => alert("Success!"))
        .catch(error => alert(error));
      event.preventDefault();
    }
    import { user } from "../store.js";
</script>