Hi,
I have a form created in LiveCycle Designer ES 8.2 that contains 34 fields named POAP (a drop down list which can be one of Q1, Q2, Q3 or Q4) and I want to sum based on the contents using:
var for
i = 0 upto 33 step 1 do // loop through the fields 0 to 33
if
(POAP[i] eq ''Q1'') then // if answer for occurrence i = Q1
Tsum
= Tsum + 1 // then add 1
endif
endfor
Tsum
// post result
This works except that POAP[0] is ignored and POAP[30] gets counted twice!
Any idea why?
TIA
Russell
FormCalc counting ignores first...Can you post the form on here so we can take a look at the whole thing?
FormCalc counting ignores first...I've attached a sanitised one (i.e. taken the company name and identifying stuff out).
Winebuf,
I'm far from a coding genius, but from what I can see in the programming at eye level everything looks fine. Hopefully someone else on the forum who knows more coding then I can help you out!
Can anyone see what's wrong with this form?
No comments:
Post a Comment