Is there an option to have check boxes checked by default in VFE? If so could someone point me in the right direction to find it. The check boxes are to select a problem or medication to include it on a handout when it prints. Instead of having to click each one that they want included we would like the ability to just uncheck the ones that aren't desired.
(I have not had VFE training as 2 others went and then 1 of those people left the organization within the month so I have taken over for them so if this is a simple silly question, I apologize.)
Thanks for any help in advance
-Rob
have to create a hidden checkbox so both get checked and so the visible checkbox won't get automatically checked again.
{!if DOCUMENT.CHECK==""
and DOCUMENT.HIDDENCHECK=="" then
DOCUMENT.HIDDENCHECK = "checked"
DOCUMENT.CHECK = "checked"
endif}
I actually want the check boxes to check automatically. What would the purpose of the hidden check box be? I thought that the check boxes were a true/false value as well which also adds to my confusion with the "checked" value.
Is there not a command similar to the following that will check the boxes?
document.checkbox.option1.checked = false;
CHECK is your checkbox
HIDDENCHECK is a checkbox similar to your checkbox that keeps track of whether yours has been checked or not, so it doesn't get automatically checked again once it has been cleared
checked is whatever value you assign to your checkbox
If you have a list of items that will usually have more items selected than not selected, then you can just have them all be checked as soon as the form opens with:
{
!DOCUMENT.ITEM1="default_value"
!DOCUMENT.ITEM2="default_value"
.
.
.
}
When the form opens, all items will be checked. Then, the user can uncheck the ones he/she doesn't actually need.
True, but when fields have been cleared and the update is put on hold and reopened, the fields will again be checked, which is why I use hidden fields to track if the fields have been modified since the initial opening.
Hopefully rkbruner can avoid having to deal with this problem since he is selecting what to include in a handout just before printing it. But you're right, code with a ! will run every time the form is opened.
This explains a lot and clears up my confusion. Fortunately the clinic I am working on this for always wants the check boxes checked and will review them before printing them each time the update is put on hold. I see the benefits of using the hidden boxes to track though and will keep that in mind in the future. Thank you both for all of your help.