Using the Mouse to Move to a New Field
When the user clicks the left mouse button on a new field in the same form, Vermont Views performs the following actions:
- nThe current field is validated. If the field contains invalid data, the user is not allowed to move to the new field; a validation error message is displayed, and the cursor remains in the current field.
- nIf the current field passed validation, its end-field function is called.
- nIf the FORCECONVERT option is ON for the current field, the data entered into that field is converted and placed in the underlying data variable.
- nThe current field is redisplayed with the inactive video attribute.
- nThe new field's begin-field function is called. Note that if the begin-field function calls sfm_nextitem() to move the user to a different field, Vermont Views respects this and places the user in the field specified by the begin-field function.
- nThe new field is displayed in the active video attribute.
- nIf the mouse was not at the beginning of the new field, the cursor is placed at the location in the field that corresponds to the mouse location.