otp_textfield
otp_textfield copied to clipboard
Clear the form and start again
How do you clear all the fields and allow the user to start again?
Even is I use 'handleControllers' to access the individual fields and clear them all, then start entering digits from the first field, the 'onSubmit()' function still gets called with the old values.
The intention is that if the user enters an incorrect 4 digit code, that the form clears and they start again.