I have spent a couple of days searching for a way to do the following with no luck. Any help you folks can give would be most appreciated...
I have a browser-based form on MOSS 2007 that has 5 sections of tasks that must be completed in order to give a percentage completed. The check boxes are set to TRUE if checked and FALSE if empty. Each section of check boxes represents 20%.
What I need is a separate field that is automatically updated with the correct percentage as the sections are completed. When the user checks all of the check boxes in section 1, they get 20%, when they check all boxes in the next section they get 40% and so on. No % credit is given if section 2 is filled in before section 1...
So, as a general test, I created a read-only text field with a rule under Validation and Rules in the field properties. The rule has a condition where BS_PercentToClose_1 is equal to TRUE AND BS_PercentToClose_2 is equal to TRUE and so on.
The expression code looks like this:
my:BS_20/my:BS_PercentToClose_1 = string(true()) or my:BS_20/my:BS_PercentToClose_2 = string(true()) or my:BS_20/my:BS_PercentToClose_3 = string(true())
The action is to set the field's value at 20.
If I preview the form, and check the boxes, it does not set the value of the field to 20. So, I changed it so if box 1 in section 1 was checked it should change the field to 20. No good still. I published the form and activated it just to make sure. Same issue.
This seems really straight forward, but I cannot make it work. I'm open to any ideas out there!!
Thanks!
Mike