Hello, having some trouble. I have a bunch of fields and they are all Checkbox group (ID 1, Label=Yes, ID 2, Label=No) I simply want a field definition rule that will "Set Value" in my Total Field instead of it showing the formula. The formula evaluates correctly so I was expecting Total to equal 1 + 1 for a total of 2? The formula I cannot create is to calculate the number of checkboxes with "Yes" checked. I am aware the formula will go into "Value to Set" Total = (EQUALS("[entry.Response1]", "Yes") + EQUALS("[entry.Response2]","Yes") + ....) where sum is all of the fields that are equal to "Yes" which I thought may evaluate to 1 if true and 0 if false.
Any direction would be appreciated.
Thanks,
If I understand you correctly then you will need to use the "Set Expression" rule instead and have someting like
Total=([entry.Response1] + [entry.Response2])
Alex
Gives me the following: error com.vertuna.confluence.plugins.confiforms.util.Expression$ExpressionException: Too many operators or functions at: +
However I got it working with this:
Total=ZEROIFEMPTY("[entry.Response1.label:Yes]") + ZEROIFEMPTY("[entry.Response2.label:Yes]")
Please confirm the following:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Well, if you allow empty values then - Yes, you need to account and handle that and ZEROIFEMPTY is a good helper function
ConifForms stores IDs that you define for your choice based fields
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Join us to learn how your team can stay fully engaged in meetings without worrying about writing everything down. Dive into Loom's newest feature, Loom AI for meetings, which automatically takes notes and tracks action items.
Register today!Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.