Back
powerJavascript
Programming
powerJavascript
Allows you to have input fields that are formulas that dynamically change based on javascript formulas.
Default:
For example, if you have am order system where you enter UnitsOrdered and UnitPrice, and you have a field called TotalCost, you can define a powerJavascript such as

$lens->powerJavascript = 'TotalCost^{UnitsOrdered} * {UnitPrice}';

Whenever UnitsOrdered or UnitPrice changes, TotalCost will be updated. TotalCost can be set to readonly also.

See readOnlyLens) and jsEvents.

Syntax
$lens->powerJavascript = 'TotalCost^{UnitsOrdered} * {UnitPrice}';

 Basic:Yes  Advanced/Enterprise:Yes  DynamicEdit:Yes   [Version 5.0]