The form editor will handle movement between fields or forms indicated by calling sfm_nextitem() from a field validation function. However, we suggest that you reserve field validation functions strictly for pass/fail validity checks on the field entry. If you want to change the flow of form processing, use end-field functions.
Also, do not set or write directly to the error message window. The Vermont Views form editor will appropriately set the error message window if there is a message to be displayed.