Oct 21st, 2016, 4:10 AM
I know you found your solution through jQuery, but I just thought I would add my 2 cents as I do use the pre-parser for calculations. And someone may need the information in the future.
Mine is setup to calculate on submission and edit for one particular form that I use for tracking QA scores. I am using to rounding function to limit the decimal places. Below is the php code.
$setid = $_POST["$submission_id"];
print_r($setid);
exit;
mysql_query("UPDATE live_form_9 SET `score`=Round((score1+score2+score3+score4+score5+score6+score7)/35*100,2) WHERE submission_id = '$setid'");}
Mine is setup to calculate on submission and edit for one particular form that I use for tracking QA scores. I am using to rounding function to limit the decimal places. Below is the php code.
$setid = $_POST["$submission_id"];
print_r($setid);
exit;
mysql_query("UPDATE live_form_9 SET `score`=Round((score1+score2+score3+score4+score5+score6+score7)/35*100,2) WHERE submission_id = '$setid'");}