Skip to content

feature(forms-submission): re-consider current implementation  #3649

Open
@erezrokah

Description

@erezrokah

Is your feature request related to a problem? Please describe.

Form supports was implemented a while back in #780.
The current implementation looks at requests and tries to detect if they are form submissions (by looking at the request method and content-type), and invoke the submission-created handler accordingly.

That implementation as a few disadvantages:

  1. It can't include any information that wasn't sent by the browser in the functions event object. See issue
  2. It will detect any POST request with a matching content-type as a form submission and trigger the handler, where it should only track forms submissions.

Describe the solution you'd like

Ideally the CLI should parse the HTML to identify forms and link those to submissions

Describe alternatives you've considered

Keeping things as they are

Additional context

See #447

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: command: devarea: formstype: featurecode contributing to the implementation of a feature and/or user facing functionality

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions