Calc: JavaScript

Executing Javascripts client AND serverside

NOTE: This feature is currently BETA, and features are subject to change.

Properties

User interface

Due to its nature this field has no special show or edit mode.

Configuration

This field requires configuration before deployment.

[INSERT IMAGE]

Edit the values using "Manual edit" feature

Required:

Help for syntax

The API currently supports the following language features

Important notice

Some field values are represented differently server and client side, namely date and decimal values

Field Client side example Server side format
Date 31/1/2014 2014-01-31
Decimal 1,23 1.234

Future versions will include these methods callable server and clientside

Example

if( getValue('NUMBER2') > 1000 )
    setValue('NUMBER1',  Math.round( 100 * Math.random() ) );

Developer info


Revision #2
Created 1 April 2025 13:37:54 by Theis Villumsen
Updated 28 July 2025 12:29:15 by Theis Villumsen