Tag

#forms

15articles
BasicsOct 13, 2026

input vs change event — and why your search only fires after clicking away

input vs change in JavaScript: when each event fires, which one to use for search, sliders and checkboxes — and why React's onChange works differently.

5 min read
BasicsOct 12, 2026

Checkbox vs toggle switch — which to use, and why a toggle with a Save button lies

Checkbox vs toggle switch: how they differ, when to use each in forms and settings, and one rule that clears up almost every doubt about which one to pick.

5 min read
GuidesSep 24, 2026

How to convert a string to a number in JavaScript — without tripping on a comma

How to turn a string into a number in JavaScript: Number, parseInt or parseFloat. Step by step — with empty fields, spaces in "1 200" and a decimal comma.

6 min read
GuidesSep 18, 2026

Why the iPhone zooms in when you tap an input field

An input field zooms the page on iPhone because its font size is under 16px. How to check it, how to fix it, and why the maximum-scale advice only hurts.

5 min read
GuidesSep 12, 2026

Why my form clears everything I typed — 3 causes and the fix

The form empties itself after an error and people retype it all. Three causes: a blank server re-render, a remounted component, and a Back that never restored.

5 min read
BasicsSep 12, 2026

What is autofill — and why the browser doesn't recognize your fields

Autofill doesn't read your name or id — it reads the autocomplete attribute. Here's the word list browsers look for, and why you can't just switch it off.

5 min read
BasicsSep 12, 2026

What is an input mask — and why it usually gets in the way

An input mask types the brackets and dashes for you. Here's why it validates nothing, where pasting breaks it, and what to use instead in your forms.

5 min read
BasicsSep 12, 2026

What is a required field — and why the asterisk advice contradicts itself

A required field is the required attribute plus a marker for humans. Why NN/g and GOV.UK give opposite advice — and how to pick the rule for your own form.

5 min read
GuidesSep 12, 2026

How to build a multi-step form — so people actually finish it

A step-by-step walkthrough: how to split a long form into screens, where to keep the answers, how not to lose them on Back, and why you need a review screen.

6 min read
BasicsSep 12, 2026

Dropdown or radio buttons — which to use in a form

Dropdown vs radio buttons compared on the criteria a beginner can actually see: taps, visible options, small screens — plus a straight rule for choosing.

5 min read
BasicsSep 11, 2026

Placeholder vs label — which to use in a form (and why grey text inside loses submissions)

A placeholder saves space but disappears as you type. We compare placeholder vs label on six criteria and give a straight answer on what to use.

5 min read
GuidesSep 10, 2026

Why users don't see my error message — 3 causes and how to check each

"I clicked and nothing happened" — yet the error is displayed. Three reasons your error message never reaches the user, and a one-minute check for each of them.

5 min read
BasicsSep 10, 2026

Toast or inline error — where to show it so people actually fix it

Toast vs inline error, compared on visibility, accessibility and message length. A straight answer on where form errors belong and when a toast is the right call.

5 min read
GuidesAug 30, 2026

What attackers type into your form — 6 strings to test your own app with

Six strings worth typing into your own form: what should happen, and what it means if something else does. A five-minute self-check for holes.

5 min read
GuidesAug 30, 2026

How to validate user input — 6 steps the AI skips

A step-by-step walkthrough: how to validate form data on the server — schema, allowlist, normalization and limits. With code and human error messages.

5 min read