The contact form is an essential part of any website as it allows visitors to communicate with site owners. However, there are times when the contact form may malfunction, causing frustration for both the visitor and the site owner. In this article, we will explain what the FormData issue is in WordPress contact forms and how to fix it.
What is FormData?
FormData is a built-in JavaScript object…
Platform: DocuSign Problem: How to download form data (i.e. Data filled by the client in docusign document) in csv? Solution: For downloading the Docuform data as CSV file follow these steps: 1. Open your docusign account. 2. From the Documents page locate the document for which you want to download the form data. 3. Click […]
Platform: DocuSign Problem: How to download form data (i.e. Data filled by the client in docusign document) in csv? Solution: For downloading the Docuform data as CSV file follow these steps: 1. Open your docusign account. 2. From the Documents page locate the document for which you want to download the form data. 3. Click […]
I encounter a strange exception when I try to post a FormData to server with $.ajax:
Uncaught TypeError: Illegal invocation
The code I use to post the FormData looks like this:
$.ajax({
url: url,
type: 'POST',
data: formdata,
dataType: 'json',
success: callback
});
I go check the jQuery's document, well it turns out that jQuery would try to convert data into a string if it's not already a string. So we need to add an option: processData:false here to tell jQuery: don't touch my data! Also another option contentType:false is required to prevent jQuery to add a Content-Type header for you, otherwise the boundary string will be missing and the upload would fail. The final ajax object looks like this :