Browse Ask a Question
 
Tools
Rss Categories

How do I create a multiple choice variable?

Views: 1029 Created: 04/05/2012 09:57 am Last Updated: 05/31/2012 07:37 pm 100 Rating/ 2 Voters

    Creating a multiple choice variable is really no different from creating a regular variable. Simply put your variable text (in this case, a series of choices) within the square brackets. Separate each choice with forward slashes.

    Here is an example:

Example
 

[apples/bananas/pears]

    You are not limited to single words. This is also a valid multiple choice variable:

Example
 

[We will mail your order within 24 hours via Federal Express./We will ship your order within 48 hours via UPS Ground./We will process your order sometime next week.]

    You are limited to single 'lines' however. That is, you cannot have an 'Enter' (new line) within the choices. Nevertheless, you can still indicate where you wish an Enter to go. Uses '<p>' (no quotes). Here is an example.

Example
 

[Robert Roe<p>123 Main Street<p>Jacksonville, Florida  32211/Janice Johnson<p>445 Oak Court<p>Philadelphia, PA 23343/Albert Allan<p>812 Orange Tree Lane<p>Sacramento, CA 99876 ]

If the user selects the second choice from the Instant Database screen, when the value is transferred into your document, the final result would be this:

Janice Johnson
445 Oak Court
Philadelphia, PA 23343

    When encountered by Pathagoras, multiple choice variables are displayed as a drop down list in the Instant Database screen.

MultiChoice *Lists*:    When the number of choices exceeds 5 or 6 (or whatever number you decide) and begins to take up too much space in the document, consider using MultiChoice *Lists*. With this 'cool tool,' you can save, let's say, all 50 United States in a separate file and recall that list simply by reference to an alias of let's say [*States*].

Read more about MultiChoice *Lists* by clicking on this link.

Note: If you have installed Pathagoras -- demo or retail -- the MultiChoice variable [*States*] is actually in your system. Type "[*States*]" (no quotes needed) onto you editing screen. Press Alt-D then Scan. Check out that list!

Grouping Multiple Choice Lists: Let's say you want the multiple choice variables [Son/Daughter/Children] and [He/she/they] and [him/her/them] to change in tandem. I.e., you select 'Daughter' and the 'she' and 'her' choices are made for you automatically. That's possible using Pathagoras' 'grouping' prefixes, discussed here.