bggann
Active Member
I have a repeated group that has various calculated fields in it.
I need to have one of those calculated fields only be calculated on the 1st repeated group. For subsequent repeated group, the value of that calculated field would be 0.
This would be easy if I can access the repeated group index from inside a calc field PHP.
if ( repeated_group_index = 0 ) { return 0; }
else { return calculated value;}
I tried using the placeholder {i} which can be used in the intro/outro for a repeated group to show the index - but inside the calc field, that placeholder is not recognized.
So - what can I do to access the repeated group index inside a repeated group calc field.
I need to have one of those calculated fields only be calculated on the 1st repeated group. For subsequent repeated group, the value of that calculated field would be 0.
This would be easy if I can access the repeated group index from inside a calc field PHP.
if ( repeated_group_index = 0 ) { return 0; }
else { return calculated value;}
I tried using the placeholder {i} which can be used in the intro/outro for a repeated group to show the index - but inside the calc field, that placeholder is not recognized.
So - what can I do to access the repeated group index inside a repeated group calc field.