Maybe use .xErrorMsg from .xform instead of the .box.warningmessage?