Do's and Don'ts
Here is the summary of things that you should be careful while posting your data to Getform.
- Every form input field you added to your form must have
name attribute with a unique name. Your input fields should look like this:
<form action="{your-endpoint}" method="POST">
<input type="text" name="name">
<input type="email" name="email">
<input type="text" name="message">
<input type="number" name="age">
</form>
-
If you want to post your data using JavaScript, you should add a content type to your
form tag. Supported content types are
"Content-Type: json", "Content-Type: formdata",
and "Content-Type: x-www-form-urlencoded"
-
You should post your data through secure HyperText Transfer Protocol (HTTPS). If you
post your data through HTTP, you data won't be submitted to Getform..
-
If you are accepting files for your forms by using only HTML or JavaScript,
you should add enctype=multipart/form-data" to your form tag.
- If you want to get response message as JSON, you must set HTTP Accept Header to
application/json.
- There are some restricted fields & keywords that we will not respond when you
post your submissions. Please do not include them to your forms'
name attribute:
- id, controller
- action
- submit
- cardNumber, card_number, card_no
- CVV, CVC, CVV2
There are certain types of files that we accept while submitting to your forms.
Accepted file types for file uploads are the following:
Documents
- pdf, doc, docx, ppt, pptx, xls, xlsx
- key, pages, numbers
- psd, ai, eps
- epub, mobi, azw
- tar, zip, rar, 7z
Media (Audio/Video/Image)
- png, jpg, jpeg, tiff, tif, gif, webp, scm
- mp3, mp4
- flv, avi, webm, mov
Text
- html, htm, xml
- sketch, txt
- rtf