There is a repeat group including a database join element as name of service {app_contracts_37_repeat___service} and an cascading element for showing service fee {app_contracts_37_repeat___service_fee}.
I need to calculate sum of repeated cascading elements. I used code listed below but it doesn't work
return array_sum($_POST['join'][32]['app_contracts_37_repeat___service_fee_raw']);
Ajax calculation: Yes
Ajax observe fields: {app_contracts_37_repeat___service}
And also group of those elements is different with calc element's group.
I need to calculate sum of repeated cascading elements. I used code listed below but it doesn't work
return array_sum($_POST['join'][32]['app_contracts_37_repeat___service_fee_raw']);
Ajax calculation: Yes
Ajax observe fields: {app_contracts_37_repeat___service}
And also group of those elements is different with calc element's group.
Last edited: