Skip to content

[2.2] Allow Form Crawler to add missing inputs when submitting #3824

@meglio

Description

@meglio

Often on web page load js generates additional inputs and adds them to the FORM DOM element, for example it happens often for adding browser and system information, if available.

When we use Form then and pass values for inputs to be set, Form class says then something like "I cannot reach these inputs" - because they initially where not in the HTML loaded.

Adding some bool parameter like createMissingInputs may help in such a case. Otherwise we have to first manually add input dom nodes to the form node, and only then call ->form() method. Passing an array of desired inputs will simplify Form usage in such a case.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions