Feb 13th, 2017, 3:50 AM
I have used the pre_parser for calculations:
1. Create a form field called Pscore
2. Add the code into the pre_parser to populate the field. ie (field1 + field2 + field3) divide by 10
$sum = ("{$_POST["P1"]}" + "{$_POST["P2"]}" + "{$_POST["P3"]}" + "{$_POST["P4"]}" + "{$_POST["P5"]}" + "{$_POST["P6"]}" + "{$_POST["P7"]}") / 10;
$_POST["Pscore"] = ["$sum"];
1. Create a form field called Pscore
2. Add the code into the pre_parser to populate the field. ie (field1 + field2 + field3) divide by 10
$sum = ("{$_POST["P1"]}" + "{$_POST["P2"]}" + "{$_POST["P3"]}" + "{$_POST["P4"]}" + "{$_POST["P5"]}" + "{$_POST["P6"]}" + "{$_POST["P7"]}") / 10;
$_POST["Pscore"] = ["$sum"];