Calc that counts repeating groups

I have a form that has two repeatable groups. For each repeatable group, I'd like to have a field that shows a count of the number of repeating groups that have been added. Keep in mind, the form shows an empty group and the group may not get populated by the user, so it needs to not count any groups left blank. Fingers crossed that this community is still active! Cheers!
 
Chat bot suggested the following, but it doesn't work:
Code:
$count = 0;
if (!empty($this->_row->Children)) {
    foreach ($this->_row->Children as $group) {
        $count++;
    }
}
return $count;
 
We are in need of some funding.
More details.

Thank you.

Members online

No members online now.
Back
Top