Available in: Logi Info | Source code name: FormulaScriptFile |
Some attribute values, such as the Label's Caption attribute, can be set with an equals sign (=) at the beginning so that it is evaluated as a VBScript or JavaScript formula. FormulaScriptFile allows you to specify one or more script files containing functions called by the formula.
For example, a Label's Caption may have:
=MyPriceDiscount(@Request.Price~)
The FormulaScriptFile could specify a script file with:
Function MyPriceDiscount(nPrice) MyPriceDiscount = nPrice * .15 End Function
The script is run on the server, not in the web browser client.
Element Group:Extensions and Shared Elements |