This is probably a simple question for the jscript savvy, but I'm new to coding so here goes.
1. I've got a text box control with the data type set to integer. The default value is set to 0.
2. I've assigned a rule to this control that checks the pattern of what the user enters and if it is not an integer, a dialog box will appear with an error message.
3. After the user closes the error message box, the field is reset to 0 and the cursor then moves to the next field. This is not what I want to happen. I want the cursor to remain on the field until the user either enters a number or leaves it at the default 0.
So, I'm guessing that I need to set up an 'OnBeforeChange' or 'OnValidate" event that keeps the focus on the field after the error message is closed. Can someone point me to any sample jscript that will help me do this?