Pathagoras Help System

Select Optional text via 'Hard' Options selection.

Select Optional text via 'Hard' Options selection.

Previous topic Next topic No directory for this topic  

Select Optional text via 'Hard' Options selection.

Previous topic Next topic Topic directory requires JavaScript JavaScript is required for the print function Mail us feedback on this topic!  

Selecting Optional text using 'Hard Value' of selection.

When you select a value from an <<*Options*!Groupname!*>> group, Pathagoras typically selects the appropriate answer to other members bearuing the same !groupname! using its position in the list. So if you select the third choice at the first appearance of the <<*Options*!groupname!*. . .>> block, the same selection -- based on 3rd place position -- would be made for subsequent options.

But Options blocks can feed Optional text using what we call a 'hard' (as opposed to 'positional') value. Pathagoras records both position of your choice and the actual value of the choice. If, later in the document, Pathagoras encounters an <<*Options*!groupname!*. . .>> block structured similarly to the original group, it will us the positional value. But if Pathagoras encounters a simple {Optional} block  bearing the same groupname and structured in a fashion similar to the below,

So, an Optional block of text displayed below the text where the choice has been made can now just be:
 
{!Groupname is Value! . . . .} Where 'State is the groupname and Colorado is the value.

Alternatively: {!Groupname = Value! . . . .}

Examples and further explanations.:

Positional Choice:

Near top of document: {!state!Colorado/ORVirginia/ORNew York}.

In document body: {!state!Colorado has great skiing./ORHistory buffs find Virginia an incredible place to visit./ORNew York is the Big Apple.}

With 'positional coding' if the user selected the first choice at the first appearance of the choices, the same (positional) selection would be made for subsequent options. So "Colorado" (the first choice) would appear at the top and "Colorado has great skiing." in mid document.

    Value Choice: (Pathagoras records the value of the selected '!group!' in addition to its position.)

Near top of document: {!state!Colorado/ORVirginia/ORNew York}. (Same as above.)

{!State is Colorado!Colorado has great sking.}

{!State is Virginia!History buffs find Virginia an incredible place to visit.}

So if Colorado is selected at the top, the 'Colorado' above language would stay. Other optional language would be deleted. deleted. If New York were selected, all optional text would be deleted.

     (You can cut and paste above examples into a document and see the action via <Alt-P>.)
 
   This works where it is impractical to code all 'subsequent' values in a long list. This should be particularly useful when a lot of choices must be presented in the initial request for value (perhaps all 50 United States are displayed in the selection screens), but only a few of those choices require extra text. (With the positional method, you would have to have a slash as a simple holding place for each 'no-extra text' situation.)

   So let's say that California, but no other state, has a statutory requirement that certain text must be included in certain documents.

   {!State!*States*}

   {!State = California!This is a special clause required for California transactions only.}

   (You can cut and paste above example into a document and see the action via <Alt-P>.)