Skip to content

Form Serialization Wrapper is Incorrect #39

@shrunyan

Description

@shrunyan

The instructions which show setting up the return value for the serializeArray is incorrect. Currently it tries to get a name property from the form element. Like so;

var wrapper = {}; 
wrapper[form.name] = data;

This is incorrect because the form does not have a name property and does not match the intention of the API, which expects JSON with a string literal property of form is submitted. e.g.

{
   "form": {...}
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions