I have a work schedule form that allows staff to plug in their hours. Most work the same hours each week so they need only fill in the time they come in and when they leave. For those whose schedule may differ for a week, I have a box that can be checked: Check if schedule differs from above. If this box is checked, I'd like a subform that I've created to appear (become visible) so this can be filled in. If the box isn't checked, I want the subform to remain hidden. What is the FormCalc script I should use to accomplish this? I've tried:
if (CheckBox1 ne 0) then
AltSchedule.presence = "visible"
else
AltSchedule.presence = "invisible"
endif
This doesn't work and I'm assuming "0" won't work (my thought was that "1" means the box is on and "0" means it is off). Anyway, any help would be appreciated!
Donna
under change java script it looks like this
if ( yourCheckbox.rawValue == 1)
{_yourSubform.setInstances (1);}
else
{_yourSubform.setInstances (0);}
for th check box make sure in binding tab 1 is on 0 is off
thats all i think