Hi,
yes this is possible, but you need to create a simple plugin, follow this example:
- Download, Install and Enable Skeleton Plugin (you will find it at
http://docs.easy-profile.com/index.php/article/triggers)
- Open file /plugins/jsn/skeleton/skeleton.php
- remove samples functions: triggerFieldAvatarUpdate, triggerProfileUpdate
- add function like this:
public function triggerProfileUpdate($user,&$data,$changed,$isNew){
// SUM
$data['field1'] = $data['field2'] + $data['field3'];
// CONCAT
$data['field1'] = $data['field2'] . $data['field3'];
// SUM FROM CHECKBOX OPTIONS,
// The checkbox can have multiple values (2 or more options), so the value is stored in JSON format
$values = (array) json_decode($data['field2']);
foreach($values as $value){
$data['field1'] += $value; // sum of options value
}
}
with this way you can do operations between fields, you need only to write your operation
docs about our triggers at
http://docs.easy-profile.com/index.php/article/triggers
NOTE:
This code is not tested and not supported, this is only for example purpose. You need to have a minimum of PHP knowledges