<?php
if(!function_exists('efCalculateTotals'){
function efCalculateTotals(&$fields){
if($fields['choice_1']) $total += 25;
if($fields['choice_2']) $total += 50;
//etcetera
//in your report have a [+formTotal+] placeholder
$fields['formTotal'] = $total;
return true; //important!
}
}
?>