2020.2

Table Of Contents
for(var i in record.fields){
results.after("<p>" + record.fields[i] + "</p>");
}
Selector Matched element Matched element after script execution
#test <h1 id="test">Fields</h1> <h1 id="test">Fields</h1>
<p>Peter</p>
<p>Parker</p>
<p>pparker@localhost.com</p>
formatter
The formatter is a global object that allows you to format values in a script.
The Text Script Wizard also allows you to format variable data; see "Using the Text Script
Wizard" on page343 and "Formatting variable data" on page347.
Note
The TextFormatter object is now deprecated and will eventually be removed.
Functions
Function Description
l currency()
l currencyNoSymbol()
l grouped()
l integer()
l integerUngrouped()
l number()
l numberUngrouped()
The currency(), grouped(), integer() and number()
functions allow you to format a number, possibly with a
custom pattern. See "Number functions" on page801.
l date()
l dateLong()
The date(), dateTime() and time() functions allow you to
format a date and/or time in different ways. See "Date,
Page 786