How to make iOS / Android vibrate when user enters bad form information?

I must get mobile device to make a light vibration response when users input bad form information.

For example:

Name: Joe Smith
Email: joe.smith@gmail
Prequal Question: Yes

If submit button >> Error: Must be complete e-mail address (gmail should be

Name: Joe Smith
Prequal Question: {blank}

If submit button >> Error: Prequal question must be answered to proceed.

If any of the following conditions above, invalid e-mail or invalid prequal question is entered, I must get phone to make a vibration gesture.

How do I make interaction light vibration gesture when error notification div appears?

1 Like