marcelhavlik
Member
Hello guys, I have one repeated group in my form and below this group I need to summarize some elements (using AJAX). Based on some googling I have this code in calc element:
Once I save my form, I will get correct sum, but this number must be summarized "on the fly" (AJAX) and if I change one number, I will get 0. After saving is the sum again correct.
Code:
return array_sum($data['table___element_raw']);
Once I save my form, I will get correct sum, but this number must be summarized "on the fly" (AJAX) and if I change one number, I will get 0. After saving is the sum again correct.
Last edited: