masa12
New Member
Can someone help me and make one sample code for calc plugin ? My javascript coding skill?s is pretty much Level noob.
I have form where I have to sum values from repeat group and one field what is in main form.
Field?s are { deb_pokalista_5_repeat___Paino} and {deb_pokalista___Lentajan_paino} both field are integer
I debugged $data array and get this data from there
And using this example I got this far, but there it end?s.
So I was hoping that someone who has better coding skill?s could help here.
the result's what I need is about {deb_pokalista___Lentajan_paino} + { deb_pokalista_5_repeat___Paino} + ect...
thanks in advance
I have form where I have to sum values from repeat group and one field what is in main form.
Field?s are { deb_pokalista_5_repeat___Paino} and {deb_pokalista___Lentajan_paino} both field are integer
I debugged $data array and get this data from there
Code:
[deb_pokalista_5_repeat___Paino_raw] => Array(
[0] => 95
[1] => 100
)
Code:
// Replace these two lines with your element's values
$joinId = '4';
$fullElementName = 'deb_pokalista_5_repeat___Paino';
// $vals is an array - it contains values of either 0 (not selected) or other
$vals = $data['join___' . $joinId . '___' . $fullElementName];
the result's what I need is about {deb_pokalista___Lentajan_paino} + { deb_pokalista_5_repeat___Paino} + ect...
thanks in advance