Open
Description
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:
- It can't include any information that wasn't sent by the browser in the functions event object. See issue
- 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