Skip to content

Component: Ajax form #70

@cferdinandi

Description

@cferdinandi

Rather than hardcoding the JS for forms, this web component will wrap around them, and hook into the existing action, method, field name attributes, etc. to handle form behaviors.

Custom events will allow users to run different actions on success or failure, including...

  • Showing a response
  • Showing a message
  • Opening a toast
  • Deleting the form
  • Redirecting the user

More on this approach here: https://gomakethings.com/progressively-enhancing-forms-with-an-html-web-component-part-2/

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestroadmapFeature on the development roadmap

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions