Support » Plugin: Calculated fields for ACF » Calculate Sum of CheckBox Values

  • Resolved dlinstedt

    (@dlinstedt)


    Thanks for the AWESOME plugin ๐Ÿ™‚ Love it!

    Repeater Field: wc_answers
    checkbox: [ ] correct (values = 1 : Y)

    when the checkbox is checked it produces a value of 1, obviously when the checkbox is unchecked it’s “not selected” according to the html standards

    I’d love to have the calculation be: sum(wc_answers.correct) (to sum all “checked” or selected checkbox values) in the repeating group.

    Obviously this doesn’t work right now, because the checkbox itself is not numeric. Thoughts?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Same idea for Button Group. I have a list of values: 1 through 10. The selected value should be able to be part of a calculating. Should be pretty easy to code this up.

    Plugin Author wundermatics

    (@wundermatics)

    Hi,

    Just replied to your other issue with (more or less) the same question / suggestion. Thanks for the input. We have some planning work to do.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Calculate Sum of CheckBox Values’ is closed to new replies.