Hi All.
I validate NumericField on EXIT event. When I get error message and click OK button I'm returning to form and coursor points to next form's field. How to keep coursor on wrong field after button OK is clicked on error message and use EXIT event?
Thanks.
Views
Replies
Total Likes
I've never found a great way to do this. The closest I've come is to validate the field on the enter event of the next field in the tab order using a script and then set the focus back to the invalid field. For example:
if (num1.rawValue < 21){
xfa.host.messageBox("Must be more than 20!");
xfa.host.setFocus(form1.subform1.num1);
}
Views
Replies
Total Likes
Hi djaknow. Thanks for replay.
I tried your code. When I return back to form the cursor don't fosuc on failed field it jump to next. How it to fix.
Thanks.
Views
Replies
Total Likes
Hmm... for me, it puts the focus back into the field referenced in the setFocus script. When you try it, the focus doesn't go to the field specified after you clear the message box?
Views
Replies
Total Likes
No. The cursor move to next field and didn't focus on specified field.
Views
Replies
Total Likes
Views
Likes
Replies