• Resolved invisiblesy

    (@invisiblesy)


    Hey guys. Great plugin, I’m really impressed – so many features!

    However, I have one question. Is it possible to calculate the number of options that the user chooses in the “checkboxes” field? Let’s say, I have 10 choices in checkboxes, the user selected 3 of them. I need to use this value (“3”) in further calculations, so how can I do that? Thank you in advance!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author codepeople

    (@codepeople)

    Hello @invisiblesy

    Thank you very much for using our plugin. Assuming the checkbox field is the fieldname123. When you use fieldname123 in the equations, the plugin adds or concatenates the ticked choices’ values by default. However, using the field’s name with the |r modifier (for raw mode), the field’s value would be an array with the values of ticked choices.

    So, to get the number of choices ticked, your equation would be:

    fieldname123|r.length

    Best regards.

    Thread Starter invisiblesy

    (@invisiblesy)

    Thanks for your quick answer! Just tried your solution and can confirm that it works fine for me.

    Plugin Author codepeople

    (@codepeople)

    Hello @invisiblesy

    Excellent !!!

    Best regards.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Calculating checkboxes choices’ is closed to new replies.