Is there a way using the VFE to make a field a required field. For example if I want to make sure that a nurse documents the site of an injection, can it be made that that site has to be entered before they can move on or sign the form off?
Yes. checkout the "Advanced" tab of the item configuration widget, the "Data Validation" section gives you several options, including "Automated page close handling" which permits a "Warning" or "Force" setting.
Thanks so much you are the bomb
Do the "Advanced" options work if the field is a date field with no validation?
They do. You can still require completion of the field even though no specific format of the date entry is enforced. If you need to force, say, a MM/DD/YYYY format for calculation purposes, pass the date field value to function that will evaluate the format and either warn or force completion of the field in the format you want.
In testing CPS 10 SP 1 we have found that the Automated Page Close Handling does not work in 2 cases:
1. User clicks on another form in the form list
2. User clicks on either left or right arrow along the edge of the form.
In both these cases, the page close handler is skipped. The page close handler is only triggered if the user clicks the Next/Previos form buttons, or goes to another tab within the form.
Having read the previous posts, I am wondering what version of CPS is being referred to. Do later SP releases fix this bug? We use the page close handler in multiple forms and would like to know if this has been fixed.
Thanks.
Joan Nordberg
Boston Healthcare for the Homeless Program
So i figured out that there are a few items in the Opitons section that must be selected in order for the Page Close Handler to work. The form now prompts the user when they try to exit the tab to another that they must enter the data. Great. However the user is still able to end the update and sign the note. Is this normal? Or should it actually prevent the user from being able to sign the note?
Thanks
if you selected 'Warn' on the Advanced tab for the field, you'll get the pop-up warning, but you can still exit the form.
if you select 'Force', you'll have to enter something in the field before you can exit the form.
When we tested all our forms in CPS 10 1.1.189, users could navigate off a form (which will close it without invoking the page close handler) if they :
- click the left/right arrows along the edge of the form, or
- click on another form in the form list.
Did you get the page close handler to work in these 2 situations in CPS 10? If so, please let me know what version you are on. If a newer version of CPS 10 has the page close handler working for all methods of closing a form, then we'll rethink needing to use the workarounds we came up with for our required fields.
Thanks.
Joan Nordberg
Boston Healthcare for the Homeless Program
We are on CPS 10.0.2.218
The page handler works great in the form. I have a multi page form with tabs on the top and on the first page I have a date field that I need the users to fill out.
Here is what I added to the Page Properties.
It works fine in the form when the user tries to navigate away the popup comes up and keeps them from leaving the form. The problem is the user can END the note regardless of whether they fill out the date field or not.
I am not sure if this is preventable or not.
It is my understanding the the END button in CPS 10 does not trigger the page close handler of the form that is open when the END button is clicked.
The only 2 reliable ways that we found in CPS 10 to ensure the page close handler being called is if users click the Next/Previous form buttons, or go to another tab within the form. We've redesigned some of our forms, to put relevant required fields on the 1st tab of a form in which that we know users will need to access the subsequent tab(s) of that form to complete the note.