Hi,
I'm using your keyboard to collect an email address. When using the 'validate' method, I've noticed a kind of catch 22: the only way the accept button becomes activated is if the validate method passes. What I would like to do is change the preview field text color to red (indicating an error) and maybe pop a modal window that says "please enter a valid email address." The problem here is that either the text color will turn red and the modal will pop at every keystroke, or it will never pop because the validate method passes. I've tried using other methods, like accept and beforeClose, to try to pop the error but it just didn't work out. What is the appropriate way to do this?
Thanks,
Mike
Hi,
I'm using your keyboard to collect an email address. When using the 'validate' method, I've noticed a kind of catch 22: the only way the accept button becomes activated is if the validate method passes. What I would like to do is change the preview field text color to red (indicating an error) and maybe pop a modal window that says "please enter a valid email address." The problem here is that either the text color will turn red and the modal will pop at every keystroke, or it will never pop because the validate method passes. I've tried using other methods, like accept and beforeClose, to try to pop the error but it just didn't work out. What is the appropriate way to do this?
Thanks,
Mike