Explict and Implicit !GroupName! settings (Part 2)

 The 'problem' with the assignment of the individual options to !groupnames! is the length of those resulting groupnames. When each item in the options list is short -- one or two words, it's okay. But frequently the option needs to be longer and, more 'prosaic' for the end user to understand the purpose of the question.

 

 Consider the following list of options:

 

"We will provide support services a no additional cost./We will provide support serves for a flat fee./We will provide support services for hourly rate./We will provide support services on-site/We will provide support services remotely."

 

 Now imagine an optional text block (actually several of them) in the document body where the group name is any of the above choices. First of all, every one exceeds the !groupname! length limit of 39 characters. But irrespective of that, the footprint of each is just too much.

 

 Pathagoras lets you offer a 'prose-like' question or option in the AskTable, but can still assign a short (one or two words) phrase as the !groupname! 'optional' using the 'implcit' assignments discussed above.  To accomplish this, Just add two 'pipes' just inside of the closing '*'  and then list the desired terms for which you want new !groupnames! created. As always, the groupnames are separated by slashes.  

 

 So here is how the above long AskOptions block might look:

 

 <<*AskOptions*!Support!We will provide support services a no additional cost./We will provide support serves for a flat fee./We will provide support services at an hourly rate./We will provide support services on-site/We will provide support services remotely.||support free/support flat-fee/support hourly/support on-site/support remote*>>

 

 So if you select the first choice, !Support! will (still) be set at '1' (of 4) but in addition,a group called !support free! will be created and set to True, and groups called !support flat-fee!, !support hourly!, !support on-site! and !support remote! will also be created, each of those with values set to False.

 Notes: Even if the prompt is short, you may still wish to assign the answer to a different value. This is especially so when the prompt is a common word (such as Yes/No or a number (one/two/three or 1/2/3, etc.) That's because Pathagoras will not assign an explicit 'true/false' value to such common words as is described above. But with the 'double-pipe' method described above, you can assign designated 'true/false' values to the selections made.

 

 <<*AskOptions*!Dozens of Roses!One/Two/Three/Four/Five/Six||One Dozen/Two Dozens/Three Dozens/Four Dozens/Five Dozens/Six Dozens*>>

 

 Here's another example, where the If function is used to reassign 'Optional' (i.e., True or False) values of different variables

 <<*AskOptions(radio)*!Deed Type!Special/General*>>

 <<*If*!Deed Type!="1",!SWD!="True",!SWD!="False">>

 <<*If*!Deed Type!="2",!GWD!="True",!GWD!="False">>

 

The above could be re-written as a single line:

 

(The above works if you don't need to preserve the implicit values of 'Special' and 'General.' If you need 'Special' and 'General' as well as 'SWD' and 'GWD' values, do not apply this 'shortcut'.)