Hello All,
I have a form that has several pages (tabs). I would like to check that several form elements have been completed before the staff member clicks off the form. If there was only one page I would put this in the page close handler. However, since the form elements are spread around several pages (tabs), I am trying to figure out a way to prompt the user without prompting them if they click between the pages on the form and only on another form in the visit. Has anyone addressed this situation already?
Thanks,
Brad
A tab on a form is treated as a separate form, therefore, moving from tab to tab is no different than moving from form to form. If you want to preserve free movement in the encounter, I believe the only way to ensure that all tabs on the form have been touched, i.e. a field within the tab changed, is to check the tab status outside of the form, downstream from that multi-tab form. This could be done on the last form of the encounter, for example your Assessment/Plan form. Set the page close handler to check the field you use for ensuring appropriate tab closure prior to closing this last form. Be aware, that there are unfortunate ways to bypass the execution of the page close handler as Centricity versions have evolved. For example, the side navigation bar evades the page close handler routine. This is not an impossible issue. Rather than use the page close handler, instead defeat the use of a critical field on this last form, e.g. Plan, by setting the visibility of the field to false if all the elements of the multi-tab field have not been appropriately dealt with. I have used this technique enforcing the user to address Meaningful Use/Quality Metrics within the encounter prior to completing the encounter.
Thank you for the good advice!