J
James III
Hello,
I inherited a protected template that has a really obnoxious idiosyncrasy
related to form fields; I found the idiosyncrasy listed in the MS knowledge
base as article ID: 839950.
In summary, the user must click or tab from one form field into another form
field on a protected document or Word does not run the form field's 'on
entry' and 'on exit' macros. Note that in this template the 'on exit' macro
does data validation and therefore when the user clicks into some other area
of the document the data is not validated at that time (this template uses
text and checkbox form fields).
Although another form field in the template calls a macro that identifies
form fields that have not been validated properly, overall this comes across
as a poor design and depending on the user, can be very frustrating/confusing.
It has been suggested that we use some type of timer to trigger a validation
of the data before the user removes the focus. However, that idea seems to
be insufficient, because how do we trigger the timer if the 'on entry' macro
was bypassed. Also, it would be tricky to know how long to wait before
forcing the data to be validated (assuming that it could even be done, since
the user has not necessarily removed focus from the control).
After that suggestion, I started thinking about keeping track of the
"current" form field with an index counter and validating the data if the
counter does not match the selected form field's name (the names all have an
imbedded index that can be identified for processing). This idea seems
limited becuase if the user leaves several form fields "improperly" how would
I know which ones to validate.
I've also been looking for some way to capture a click event in the
protected non-form field areas, but apparently the click events are always
tied to a form field.
An obtuse 'solution' that I proposed is to include in the template an
explanation of how to enter/exit the form fields 'properly' (obviously not
the desired path).
Any suggestions would be greatly appreciated!
I inherited a protected template that has a really obnoxious idiosyncrasy
related to form fields; I found the idiosyncrasy listed in the MS knowledge
base as article ID: 839950.
In summary, the user must click or tab from one form field into another form
field on a protected document or Word does not run the form field's 'on
entry' and 'on exit' macros. Note that in this template the 'on exit' macro
does data validation and therefore when the user clicks into some other area
of the document the data is not validated at that time (this template uses
text and checkbox form fields).
Although another form field in the template calls a macro that identifies
form fields that have not been validated properly, overall this comes across
as a poor design and depending on the user, can be very frustrating/confusing.
It has been suggested that we use some type of timer to trigger a validation
of the data before the user removes the focus. However, that idea seems to
be insufficient, because how do we trigger the timer if the 'on entry' macro
was bypassed. Also, it would be tricky to know how long to wait before
forcing the data to be validated (assuming that it could even be done, since
the user has not necessarily removed focus from the control).
After that suggestion, I started thinking about keeping track of the
"current" form field with an index counter and validating the data if the
counter does not match the selected form field's name (the names all have an
imbedded index that can be identified for processing). This idea seems
limited becuase if the user leaves several form fields "improperly" how would
I know which ones to validate.
I've also been looking for some way to capture a click event in the
protected non-form field areas, but apparently the click events are always
tied to a form field.
An obtuse 'solution' that I proposed is to include in the template an
explanation of how to enter/exit the form fields 'properly' (obviously not
the desired path).
Any suggestions would be greatly appreciated!