Saliem Talash: A filled field can be missing from a form request
A reference number can look complete on a form and still be absent from the request that leaves the page. Reading every visible value before pressing the button will not catch that difference. The review needs a second view: the actual keys and values received by the destination.
In a small local experiment, the reference DEMO-042 appeared in two fictional forms. One submitted it. The other did not. A separate blank note survived both submissions, while a filled display-only field survived neither. Those results make a useful handoff exercise because “filled,” “empty” and “missing” describe different things.
Five controls, three submission cases
Each form contained the same five input controls:
- Request: a named text input containing
Sample review. - Reference: a named text input containing
DEMO-042. - Display-only note: a text input containing
Display only, with nonameattribute. - Optional note: a named text input whose value was an empty string.
- Copy flag: a named checkbox with the value
yes, initially unchecked.
The two versions changed the reference input's state. One used disabled; the other used readonly. Their reference values were identical. The deliberately nameless field and empty note provided controls for interpreting the result. The copy flag was fictional and sent no copy or message.
The page used an ordinary HTML form and a submit button with no name. No page scripts constructed or modified the data. A local GET destination displayed the pairs it received, including an explicit empty string where appropriate. GET made the fictional request visible for inspection; no customer information, email delivery or database record was involved.
What arrived at the local destination
Six successful native submissions covered three cases at desktop 1440 × 900 and narrow 390 × 844 viewports. Desktop submissions used the button by pointer. Narrow submissions used Enter on the submit button. Each case had a before-form observation and an after-request observation, giving twelve recorded states.
The same results appeared at both widths:
- Disabled reference, copy unchecked: two pairs arrived. The request was
Sample review, and the optional note was an empty string. The reference key was absent. - Read-only reference, copy unchecked: three pairs arrived. The reference
DEMO-042joined the request and empty note. - Read-only reference, copy checked: four pairs arrived. The additional pair was
copy=yes.
The filled display-only field was absent in all six requests. The optional note remained present in all six, with an empty value. No horizontal document overflow appeared in the recorded layouts.
These are local synthetic observations from November 11, 2026. AI assistance was used to prepare the fixture, inspect the results and draft this article. Every reference, request and control value is fictional. The comparison exercised one browser environment and one native GET path; it did not test a production form, physical phone, other browser engine, assistive technology, autofill, POST handling, delivery, storage or security controls.
Check the attribute that changes the outcome
The disabled reference used this input fragment:
<input type="text"
name="reference"
value="DEMO-042"
disabled>
The read-only version replaced the last line with readonly. In this experiment that change retained the displayed reference while allowing its named value into the submitted request.
MDN's disabled attribute reference explains that disabled controls are excluded from form submission. Its read-only attribute reference describes a different state for supported text controls. Choose the state to match the intended behaviour of that control.
The distinction also affects interaction. A disabled control does not behave like a normal focusable field. Read-only is available on supported text controls; it is not a universal way to lock checkboxes, select menus or buttons. This experiment did not evaluate keyboard focus order or assistive-technology announcements, so its submission results should not be used as an accessibility sign-off.
If a control should genuinely be unavailable, preserve that purpose. Establish how the receiving application will obtain any reference it still needs. Replacing every disabled attribute across a site would change unrelated interactions without showing that their data contracts are correct.
An empty value needs its own acceptance rule
The optional note arrived as a key with an empty value. The unchecked checkbox arrived as no key at all. The filled field without a name also arrived as no key.
MDN's input-name documentation explains the role of the name in submission and identifies omitted cases such as unnamed inputs and unchecked checkboxes. A label that people can read does not supply a missing submission name.
For a handoff, write down what each absence means. An empty optional note might be acceptable. A missing reference might prevent a request from being associated with the intended item. An absent checkbox key needs a defined interpretation at the destination. The browser's construction of a request does not decide those application meanings.
For this fixture, an acceptance note could say: “The optional note key must be present, including when empty. The reference must equal the fictional test value. The copy key is absent when unchecked and equals yes when checked. The display-only note is intentionally excluded.”
That note gives a reviewer something more precise to compare than a screenshot of filled boxes. It also makes an intentional omission distinguishable from a defect.
Leave a small field map with the handoff
Record five things for each important control: its visible label, submitted key, expected value, state that can exclude it, and the receiving application's acceptance rule. Then submit one clearly fictional example and compare the actual received pairs with that map.
Keep the result's scope visible. The local receipt here proves which pairs arrived at the fixture's GET destination. It does not prove that an enquiry was delivered, stored or associated with a real account. Those downstream steps need their own observations.
The STEO filter-link review examines a different URL handoff: reopening the same fictional filtered list. Here, the useful question comes earlier. Before a destination can interpret a value, check that the form actually sent it.
Comments
Post a Comment