AFSimple_Calculate reveals that
var f = this.getField(aFields[i]);
but that doesn't help me figure out what's going wrong. The only thing I've changed in the script is that I've changed "MyChecks" to "Points".
Help please? I'm using Acrobat 9 (yes, 9. Don't judge) on a Mac.
That means one of the field names you've entered is incorrect. Make sure you re-select the fields in your calculation after renaming or removing one of them, as the list doesn't update automatically when you do.
Alright, I think I figured that part out; thanks. But I'm having another difficulty. I have three fields named Points.Q1, three named Points.Q2, etc. This is working great for its purpose: You can check one and only one of those fields. However, the counting script discussed here only counts when the first of the three identically-named fields in any set is checked. Is there a way around this problem?
Can you post your code, or your actual file?
Works fine for me.
Sorry, I was looking at the total points field, not the number of objectives with points.
To fix that one change this part:
tests only the first checkbox of a group.
You must also test