Skip to content
This repository was archived by the owner on Jul 1, 2020. It is now read-only.
This repository was archived by the owner on Jul 1, 2020. It is now read-only.

Remote Validation does not show error massages. #95

@imanghafoori1

Description

@imanghafoori1

Remote validation does send the request and gets a 422 error. But it does not show the validation error msg on my form.

This my factory code :

            ajax_checker_email: function (email) {
                var deferred = $q.defer();

                $http({method: 'post', url: "/uniqueness", data: {email: email}})
                    .success(
                        function (data) {
                            deferred.resolve({isValid: true, message: 'ey valla'});
                        })
                    .error(
                        function (data) {
                            deferred.reject({isValid: false, message: 'no'});
                        });

                return deferred.promise;
            },

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions