Regenerating captcha when the form is invalid
In the following form, click the Submit button to see the new captcha is generated.
TipThe example uses a very simple captcha generation which is a sum operation of two random numbers. In reality, it's recommended to use the popular Google's reCaptcha service
The following validators might be useful to you.