Skip to content

Recursive validation has no return value #81

@KaiDream

Description

@KaiDream

We have ran into an issue with validation triggering and comparing if the form is valid.

FpJsCustomizeMethods.validate({'recursive': true}) (ie: form.jsFormValidator('validate', {'recursive': true}) will always return false since .FpJsFormElement.validateRecursively() (https://github.com/formapro/JsFormValidatorBundle/blob/master/Resources/public/js/fp_js_validator.js#L47) has no return value when executed on:
https://github.com/formapro/JsFormValidatorBundle/blob/master/Resources/public/js/fp_js_validator.js#L244.

I am not sure if this intended behavior or FpJsFormElement.validateRecursively() needs to be patched to return the proper form state.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions