Tag: Forms

Recent Post

Receive form data in Node.js (with and without files)

Receive form data that is url-encoded or of type 'multipart/form-data'

Get Size of a FormData Object Payload

To do so, you need to make your calculations conditional upon data type.

Validate File Size Before Upload with JavaScript

Minimize server requests by validating file size before uploading.

Input Form Field Suggestions with HTML and JavaScript

Input suggestions can be coded with HTML only and options populated with JavaScript.

Get checked checkbox values only from HTML form with JavaScript

You'll want to push checkbox values into an array only if they are checked.

Save user form input data in a JavaScript object

This task is possible in two lines using the FormData constructor and Object.fromEntries()

POST form data (also including a file) using Axios

Make a POST request containing form data as the payload using Axios.

POST form data using JavaScript’s Fetch API

Fully control form data submission using JavaScript's Fetch API.