2022.2

Table Of Contents
Showingorhidingatextselection
Whenyouright-clickonanelementandmakeitconditional,theelementasawholewillbemadecon-
ditional.Thishappensevenwhenyouselectafewwordsinaparagraphandright-clickthosewords;
theparagraphasawholewillbemadeconditional.
Itis,however,possibletoshoworhideapartofaparagraph.
Ifthetextthatyouwanttoshoworhideisshort,youcouldusetheSelector and Textoptioninthe
ConditionalContentwizardandcopythetextintotheTextfield.Thisoptionusesthespecifiedselector
asatriggerforthescript.Thescriptappliestoallinstancesofthetextfoundwithinthespecified
selector.
Searchingfortextcanbealengthyoperation,comparedtosearchingforanelementwithanID.Ifper-
formanceisanissue,ofifthesearchtextislong,abetteralternativeistowrapthetextinaspanele-
mentfirst.
1. Selectthepartofthetextthatyouwanttomakeconditional.
2. Right-clicktheselectedtextandclickWrap in span.
3. TypeanIDand/oraclass.AnIDisfineifthisistheonlythingthatshouldbeshownorhiddenon
agivencondition.Useaclassifthereismorethatshouldbeshownorhiddenonthesamecon-
dition.
4. StartcreatingaconditionalcontentscriptfromtheScriptspane.UsetheIDorclassasthe
selectorofthescript.See"ShowingorhidingelementsusingtheConditionalContentScriptwiz-
ard"onpage735.
Conditional Print sections
YoucanincludeorexcludeentirePrintsectionsfromtheoutput,dependingonafield’svalue.Thiscan
bedoneusingtheConditionalPrintSectionScriptWizard,describedbelow.Alternativelyyoucould
writeaControlScript(see"ControlScripts"onpage838).
IncludingorexcludingPrintsectionsusingtheConditionalPrintSectionScriptwizard
ToopentheConditionalPrintSectionScriptwizard:
l
Right-clickthesectionandclickMake Conditional.
l
AlternativelyclicktheblacktriangleontheNewbuttonontheScriptspaneatthebottomleftof
thewindow,andclickConditional Print Section Script.Double-clickthenewscripttoopenthe
ConditionalPrintSectionScriptwizard.
Inthewizard,firstmakethefollowingsettings.
Page 738