Skip to content

Input widgets need a name attribute so native form POST works with JS disabled #54

@prakashUXtech

Description

@prakashUXtech

#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).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions