I'm trying to set the content type request of the formdata but it doesn't seem to work.

    async onFormSubmit(e) {
      try {

      const formData = serializeForm(this.nextForm || this.form, {
        submitButtonName: this.submitButtonName,

      formData.toUrlEncodedFormData() // <--- it converts here but doesn't get applied when I submit the form. Content Type is still set to multipart.
      try {
        const result = await submitForm(formData, this.action, {
          fetcher: FormFetcher,

      } catch (error) {
        this.$emit('submit-form-error', error);

Package Version:

    "@sitecore-jss/sitecore-jss-forms": "^21.2.4",
    "@sitecore-jss/sitecore-jss-vue": "~21.2.4",

enter image description here


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.