#53 added native POST/GET submit to Form.svelte for static hosts (Paw Sites). A native form only sends fields whose input has a name attribute, and right now none of the input widgets (Input, Select, Textarea, Checkbox, NumberInput, and the rest) render one.
So with JS turned off, the form posts an empty body and lead capture loses every field.
Goal: render name on the underlying control for each input widget, taken from an explicit name prop and falling back to the bind path. The paw-sites generator should also set name on the input nodes it emits (see qbtrix/paw-sites).
Acceptance: a generated Paw Site form posts all its fields with JS disabled, and widget tests cover the name attribute.
Follow-up to #53 (RFC 12, JS-off lead capture).
#53 added native POST/GET submit to
Form.sveltefor static hosts (Paw Sites). A native form only sends fields whose input has anameattribute, and right now none of the input widgets (Input, Select, Textarea, Checkbox, NumberInput, and the rest) render one.So with JS turned off, the form posts an empty body and lead capture loses every field.
Goal: render
nameon the underlying control for each input widget, taken from an explicitnameprop and falling back to the bind path. The paw-sites generator should also setnameon the input nodes it emits (see qbtrix/paw-sites).Acceptance: a generated Paw Site form posts all its fields with JS disabled, and widget tests cover the
nameattribute.Follow-up to #53 (RFC 12, JS-off lead capture).