Application form   ->   Formula

Formula


CubeDrive allows the user to define the formula field type. With formulas, users can easily process some data calculations. It can be used to:


Setup formula


When creating a new field, authors can drag the Formula field type from the field list and drop to the center panel. You also need to set the formula properties on the right panel.

To set up a formula, you need enter the format with "=" start in the formula text field.

Tip: users can set up another formula format based on certain predefined condition.

If the formula result is double (such as a currency result), please check the following setting. In APP, the double format formula can process further calculate action.


Examples

=concatenate('"',if(${'role'}='employee','employee-',''),if(${'role'}='manager','Manager-',''),'CubeDrive',if(${'role'}='CEO','-CEO,',''),if(${'role'}='employee','-employer,',''),if(${'startDate'},TEXT(${'startDate'},"MM/dd"),'Recently ') ,' run"', ${'type'},',',${'body'},',',${'rank'},',',${'total'},',',${'period'},',',${'location'},',History:',${'history'}, if(${'extra'}, '
'+${'extra'}, ''), if(${'interesting'}, '
'+${'interesting'}, ''), if(${'code'}, '
'+${'code'}, ''))

Functions


The supported formulas are listed below.