1.5

Table Of Contents
Function Description
page777
"show()"
below
Shows the HTML element or a set of HTML elements.
size() Gets the number of elements in this result set. Equivalent to the length
property.
"text()" below Replaces the textcontentof an HTML element or of each element in a set
of HTML elements with the supplied value, or returns the text content of
the first element if no value is supplied.
show()
Shows the elements in a set. To hide elements (again), use the function "hide()" on page760.
These functions are used by the Conditional Script Wizard, as you can see when you open a
Conditional Script and click the Expand button; see "Showing content conditionally" on
page506.
Example
This script hides or shows the elements matched by the selector of the script (which are stored
in the results object), depending on the value of the data field Country in the current record.
if (record.fields["Country"] == "CANADA") {
results.show();
} else {
results.hide();
}
text()
text() : String
Returns the text content of the first element in a result set.
Page 781