2022.2

Table Of Contents
l
Theelementsthatmatchtheselectorofascript(see"results"onpage1301).
l
Oneelementthatmatchestheselectorofascriptthatrunsfor"Eachmatchedelement"(see
"this"onpage1237and"Settingthescopeofascript"onpage813).
l
Theelementsreturnedbyaqueryinthetemplate(see"query()"onpage1197).
Thisdoesn'tremovetheelements;tomakethemvisibleagain,usethefunction"show()"onpage1268.
ThesefunctionsareusedbytheConditionalScriptWizard,asyoucanseewhenyouopenaCondi-
tionalScriptandclicktheExpandbutton;see"Showingcontentconditionally"onpage734.
Example
Thisscripthidesorshowstheelementsmatchedbytheselectorofthescript(whicharestoredinthe
resultsobject),dependingonthevalueofthedatafieldCountryinthecurrentrecord.
if (record.fields["Country"] == "CANADA") {
results.show();
} else {
results.hide();
}
html()
html() : String
ReturnstheinnerHTMLofanHTMLelement,whichcanbe:
l
Thefirstelementinasetofelementsthatmatchtheselectorofascript(see"results"on
page1301).
l
Oneelementthatmatchestheselectorofascriptthatrunsfor"Eachmatchedelement"(see
"this"onpage1237and"Settingthescopeofascript"onpage813).
l
Thefirstelementinasetofelementsreturnedbyaqueryinthetemplate(see"query()"on
page1197).
html(value)
ReplacestheinnerHTMLofanHTMLelementorofeachelementinaresultsetwiththesupplied
value.
value
AStringthatmaycontainHTMLtags.
Page 1257