Use Google to find help fast. For example, search on "xpressdox choosefromlist".

40 Often Used Commands and Functions

40 Often Used Commands and Functions

Learning XpressDox is a bit like learning a new language. It takes a little practice (and patience) to become fluent. The great news is that in this language, you only need about 40 words (commands) to speak the language!

Here are the 40 most often used commands and functions:

Command or Function Name Description and Examples
BaseTemplate

Base (or overlay) this template on another template

«BaseTemplate(LetterHead)»

«BaseTemplate(headings:LetterHead,Destination)»

Caption

Set the caption for the data element on the interview screen

«Caption(Amount,Capital amount of loan)»

«Caption(Amount,^bu^@Navy@Capital amount of loan)»

CaptureDataElement

Places a control for the data element on the interview screen

«CaptureDataElement(Name)»

«CaptureDataElement(DateOfBirth,date)»

CaptureInGrid

Specify whether or not a repeater should be displayed and captured in a grid

«CaptureInGrid(Child,Yes)»

«CaptureInGrid(Child,No)»«CaptureInGrid(Child/Pet,Yes)»

ChooseFromHzRDBList

Present a horizontal list of radio button choices

«ChooseFromHzRDBList(Gender,,Male,Female)»

ChooseFromList

Present the user with a list of choices in a drop down list

«ChooseFromList(Province,Ontario,Quebec,British Columbia,Alberta,Manitoba,Saskatchewan,Nova Scotia,New Brunswick,Newfoundland and Labrador,Prince Edward Island)»

«ChooseFromList(Province,,Ontario,Quebec,'British Columbia', 'Alberta' ,Manitoba,Saskatchewan,Nova Scotia,New Brunswick,'Newfoundland and Labrador',Prince Edward Island)»

«ChooseFromList(Province,O~~Ontario,Q~~Quebec,BC~~British Columbia,A~~Alberta,M~~Manitoba,S~~Saskatchewan,NS~~Nova Scotia,NB~~New Brunswick,NL~~Newfoundland and Labrador,PE~~Prince Edward Island)»

ChooseFromRDBList

Present a radio button list of choices

«ChooseFromRDBList(Orientation,North,South,East,West)»

«ChooseFromRDBList(Clause,Security~~The undersigned undertakes to provide security covering the loan to be granted.,NoSecurity~~The undersigned is not required to provide security for the loan.)»

«ChooseFromRDBList(Clause,~~The undersigned undertakes to provide security covering the loan to be granted.,~~The undersigned is not required to provide security for the loan.)»

ChooseFromSamples

Presents a drop down list of choices, but the user can type their own if it is not in the list

«ChooseFromSamples(Title,,Mr.,Mrs.,Miss,Ms.,Prof.,Dr.)»

ChooseUsingCheckBox

Choose a value using a check box

«ChooseUsingCheckBox(RequiresSpecialSchooling,Yes,No,No)»

«ChooseUsingCheckBox(Clause,~~The Parties agree to cede their rights to various assets without prejudice.)»
«If(Clause != '')»
«Clause»
«End()»

Comment

Enter a comment into the template

«Comment(Any arbitrary comments)»

Define

Define the interview properties of a data element

«Define(Amount,^biu^@Red@Caption text,|^b^@Navy@Heading text,Footing Text,Tab Caption,CaptureDataElement,,Required,Initial Value,hard;IsDigits;The amount must be numerics only.,Cases;RefreshSave;'Id=;')?Enter the amount of the deal.»

«Define(Title,^biu^@Red@Title of the party,|^b^@Navy@PARTY DETAILS,,Contact Information,ChooseFromList,;Mr.;Mrs.;Ms.;Dr.;Prof.)»

«Define(TaxIncluded,Is Tax included,,,,ChooseUsingCheckBox,Y;N;N)»

DocumentBody

Insert the body of the originating template into the Base Template

«DocumentBody»

Dollars

Render a numeric amount as a number of Dollars, in words

«Dollars(Price)»

«Dollars(Price,'ToUpper')»

Footing

Place footing text below a data element in the interview

«Footing(CompanyPostalCode,END OF COMPANY DETAILS)»

«Footing(CompanyName,)»

«Footing(CompanyPostalCode,|^bu^@Navy@END OF COMPANY DETAILS)»

ForEach

Repeat for a number of repeating data elements

«ForEach(Party)» «End()»

«ForEach(Party,Surname,ascending,text)» «End(for each)»

«ForEach(Child[Age < 12]) selects children whose age is less than 12» «End()»

FormatDate

Format a field as date and/or time

«FormatDate(DateOfBirth,'yyyy/MM/dd','en')»

«FormatDate(SignatureDate,'o MMMM yyyy')»

FormatNumber

Format Number

«FormatNumber(Amount)»

«FormatNumber(Amount,'#,0.00;(#,0.00)')»

«FormatNumber(Amount,'#,0.00;(#,0.00)','FR')»

GetV

Get the value of a variable

«GetV('Balance')»

Heading

Place heading text above a data element in the interview

«Heading(CompanyName, COMPANY DETAILS)»

«Heading(CompanyName,|^bu^@Navy@COMPANY DETAILS)»

If

Conditionally include text into the document

«If(Answer = 'No')» «End(If)»

«If(Answer = 'Yes')»text when Answer is 'Yes'«Else()»text when Answer is not 'Yes'«End(If)»

«If((Answer = 'Yes') or (Answer = 'Maybe') and (Amount > 500)»«End()»

«If(position()= 1)»This applies only to the first repeating item.«End()»

«ForEach(Party)»«PartyFullNames»«If(last() > 1)»«When(position() < last()-1,!, )»«When(position() = last()-1, and )»«End(party > 1)»«End(for each)»

«ChooseFromRDBList(Gender,Male,Female)»«If(Gender = "Male")»«SetV("PronounHe","he")»«Setv("PronounHim","him")»«SetV("PronounHis","his")»«Else()»«SetV("PronounHe","she")»«SetV("PronounHim","her")»«SetV("PronounHis","her")»«End()»«RemoveParagraph()»
«GetV('PronounHe')» took «GetV('PronounHis')» bag with «GetV('PronounHim')»

IIf

IIf function

«IIf((VatIndicator = 'Yes'),FormatNumber(Amount * 0.14),'0.00')»

IncludeTemplate

Include a template as part of this template

«IncludeTemplate(utils:Clauses,Destination,ExcludeHeaders)»

«IncludeTemplate(utils:Clauses,Destination,PreserveHeaders)»

«IncludeTemplate(utils:Help,Text)»

InsertFormattedText

Insert text captured as long text

«InsertFormattedText(Address)»

«InsertFormattedText(Address,Paragraph)»

«InsertFormattedText(Address,Destination)»

InsertTemplate

Insert a template whose name appears in a data element which is chosen by the user.

«InsertTemplate(Clause,Destination)»

«InsertTemplate(concat('Clauses:',ChosenClauseName,PartyType),Destination)»

«InsertTemplate('Party Underage Clause',Destination)»

«InsertTemplate('letters:Covering Letter',Destination,PreserveHeaders)»

Now

Insert the current date (i.e. today) and/or time into the document

«Now('yyyy/MM/dd')»

«Now('MMMM o yyyy')»

«Now('d MMMM yyyy HH:mm:ss','de')»

«Now()»

NumberPhrase

Format a number as words

«NumberPhrase(Price)»

«NumberPhrase(Price - 100,'en-us','ToUpper')»

Required

Mark one or more data elements as required - i.e. must have a non-empty value

«Required(AccountNumber,Decimal)»

«Required(AccountNumber)»

«Required(AccountNumber,Surname,IDNumber)»

Rule

Applies a custom made validation rule to the data element in the interview process

«Rule(Cost,hard,IsNumber,110.00,12000.00,The Cost must be greater than 109 and less than or equal to 12000.)»

«Rule(SellingPrice,hard,(Area > 1000 and SellingPrice > 500000) or (Area < 1001 and SellingPrice < 50001),'The SellingPrice must be greater than 500000 when the Area is more than 1000.')»

«Rule(IDNumber,hard,IsDigits,The IDNumber must consist only of digits)»«Rule(IDNumber,hard,string-length(IDNumber) = 13,the IDNumber must be exactly 13 digits long.)»

«Rule(IDNumber,hard,IsZAIDNumber,The IDNumber failed the test for a valid South African ID Number.)»

«Rule(Email,hard,IsEmailAddress,'The field must be a valid email address')»«Rule(Email,hard,(not(contains(Email,',')) and not(contains(Email,';'))),'not a list of addresses.')»

«Rule(Postal_Code,hard,IsUKPostalCode,'Please enter a valid UK Postal Code')»

«Rule(Price,hard,IsRegionalNumber,'EU','The value must be a number in the format 9.999,99')»

«Rule(IDNumber,soft,1 = 1,'do you want to accept the value anyway?')»

SaveAsPdf

Specify whether or not to save the merged document in PDF format.

SetInitialValue

Sets the initial value for a data element that is to be captured

«SetInitialValue(PostalCode,7890)»

«SetInitialValue(Customer/State,Washington)»

SetVR

Set a variable value and remove the paragraph

«SetVR('Balance',0)»

«SetVr('Balance',GetV('Balance') + RenderAsNumeric(Amount))»

«ChooseFromRDBList(Gender,Male,Female)»«If(Gender = "Male")»«SetVr("PronounHe","he")»«Setv("PronounHim","him")»«SetV("PronounHis","his")»«Else()»«SetVR("PronounHe","she")»«SetV("PronounHim","her")»«SetV("PronounHis","her")»«End()»
«GetV('PronounHe')» took «GetV('PronounHis')» bag with «GetV('PronounHim')»

Tab

Add a tab to the main panel of the interview screen

«Tab(Financial Information,Capital,InterestRate,InterestDate,AmountPaid)»

TabOrientation

Specify whether Tabs appear Horizontally or Vertically

«TabOrientation(Vertical)»

Today

Insert the current date into the document

«Today('yyyy/MM/dd')»

«Today('MMMM o yyyy')»

«Today()»

ToLower

Convert to lower case

«ToLower(Name)»

«ToLower(Name,1)»

«ToLower(Name,2,0)»

«ToLower(Name,3,2)»

ToSentence

Convert to Sentence case

«ToSentence(Surname)»

ToTitle

Convert to Title Case

«ToTitle(BookTitle)»

«ToTitle(Names,'short')»

ToUpper

Convert to UPPER case

«ToUpper(Name)»

«ToUpper(Name,1,1)»

«ToUpper(Name,2,0)»

«ToUpper(Name,3,2)»

When

Provide condition for including small text values (e.g. for gender or plural handling)

«When(Gender = 'M',he,she)»

«When(count(Child) = 1,child,children)»

«When(StartsWithVowel(Fruit),an,a)» «Fruit»

Back to top »