I have 2 fields:
1. dynamic field listing items with checkboxes - source is another 3rd field
2. simple number field; for "Default Value" I want to calculate the count of selected items from above dynamic field. – Is this possible? Does field calculation allow for such functionality?
Thank you!
not sure if I understand your question/hint… but the answer by Victor to use a javascript worked.
Doesn`t work for checkboxes where "other" option is to be typed by the user (checkbox with custom text). It will not be count when it`s checked.
The "other" option is a checkbox that will be counted if you modify the jQuery example to do so. The jQuery looks at a checkbox's name and checked properties to determine the count. The selector for regular checkboxes is input[name='item_meta[643][]']:checked. To check for other, include input[name='item_meta[643][other_2]']:checked in the selector list like this modified example on pastebin: https://pastebin.com/rXYYBhHc
Please login or Register to submit your answer