Kubber
Kubber

Reputation: 397

Please wait while checking remote validators in parsley.js

I have a form with 10 fields. For 5 fields I use remote validation which takes few seconds. I need to show user Please Wait info and hide it when all remote validations are finished. Any smart way how to do it ?

Upvotes: 2

Views: 167

Answers (1)

guillaumepotier
guillaumepotier

Reputation: 7448

You should listen to the field:validate event to display the "Please wait" notice and to the field:validated event to remove it.

More about Parsley events here.

Upvotes: 1

Related Questions