get_calculation_value()
public static function get_calculation_value( $field_id, $form, $lead, $number_format='', $modifier='' )
Gets the calculation value for a specific field.
Since:
unknown2.9.3(Added the $modifier parameter.)
Source: common.php:5603
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
$field_id | int | The ID of the field. | |
$form | array | The form object. | |
$lead | array | The lead object. | |
$number_format | string | '' | The number format. |
$modifier | string | '' | The modifier. |
Returns
float|int— The calculation value.