Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for parsley remote? #51

Open
jhagege opened this issue Jan 19, 2015 · 1 comment
Open

Support for parsley remote? #51

jhagege opened this issue Jan 19, 2015 · 1 comment

Comments

@jhagege
Copy link

jhagege commented Jan 19, 2015

Hi, thanks a lot for this amazing plugin!

What would be the best way to have custom validation based on the back end using parsley remote?

Thanks!

@EmadMokhtar
Copy link

I've tried that and it is working fine because it'll generate data-parsley-remote attribute and it'll call the API.

Here I'm call a web api to validate the password field remotely using AJAX call.

 parsley_extras = {
            'password': {
                'remote': reverse_lazy('validate-password-parsley'),
                'error-message': "Password is invalid"
            }
        }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants