Expand my Community achievements bar.

Validation Looping - 2nd Request

Avatar

Former Community Member
Help!!!I am still trying different ways but it isn't working!



I have 8 fields where the rawvalue must be ge another field; if not, then setfocus back to that field. This works except when I tab to the next field then it goes into a looping cycle and I have to break the program in order to get out...



if (numShower.rawValue < showercapa.rawValue) { xfa.host.messageBox("Invalid Number Input","Warning","1");



xfa.host.setFocus(this);

}



It works if I setFocus to the next field..but I really want it to setFocus back to the field for correct figure.



Please help!
0 Replies