Why is my disabled event-code field missing from the HTML form submission?
TechnologyMy practice form displays an event code in a named text input. I added `disabled` so people wouldn't edit it, then found the code wasn't included in the form submission. The visible value was still correct on screen.
MDN distinguishes disabled controls, which aren't submitted, from read-only controls that remain focusable and functional. MDN's readonly reference
Is readonly the right interface choice if I want this text visible, not editable through the field, and included in a normal submission? I'm trying to understand the missing value before adding another hidden field beside it.