The NEW XpressDox Version 14 is now available!

Edit Content
Click on the Edit Content button to edit/add the content.

The ChooseFromSamples Command

Present a list of choices to the user, in a drop down list, except that in this case the user is permitted to type their own value and is not restricted to just the items in the list.

 

Command structure:

«ChooseFromSamples(Salutation,Yours faithfully,Yours sincerely,Kind regards)»«Salutation»

 

In all other respects this command behaves the same as the ChooseFromList.

Document Logic:

It is probably best, when using document logic, to use a different type of list.

«ChooseFromRDBList(Marital_Status,Married,Unmarried)»
«If(Marital_Status = 'Married')»
«Spouse_Name»
«End()»

The above would be better than allowing a ChooseFromSamples for the Marital_Status question. When using an If statement you as the template author want to be sure you know what answers to expect so that the document logic will always work correctly. Allowing a ChooseFromSamples, or in fact any free format field, will allow users to insert any text. Even if users were to insert the word ‘married’ with a lower case ‘m’ it would cause the If statement to fail.

Related articles:

ChooseFromList

Conditional processing (If / Else / When)

 

Table of Contents