Referencing multi-option calculation fields in a calculation

Comments

1 comment

  • Rainer Grabowski

    Hi Mike,

    the code looks ok besides the fact that the value of count[i] is not recognized as a number but as a string - which you have to parse to a number:
    +count[i]
    or
    Number(count[i])
    or
    parseInt(count[i])

    But if you have the field "One Count" only for counting items in this calculation you don't need that field. Just write 
    total++
    instead of 
    total += count[i]

    Rainer

     

    0
    Comment actions Permalink

Please sign in to leave a comment.

Powered by Zendesk