Inserting an other box in a table

Problem

You want to lay out several items in a table format and add an "other" choice at the end.

Solution

  1. create a STOCK-type question
  2. give that STOCK question a single answer code that corresponds to an open-end part; give the open-end part the characteristics required by the application
  3. place that STOCK question outside of the table page (as STOCK questions are not allowed within pages)
  4. in the note field of the "Other" item of the table, add the following to the text of the note (which will become the text of the line label in the table): <BOX>name_of_the_STOCK_question</BOX>; do the same in all language versions of the item text
  5. optionally, add MUST conditions to the STOCK question and/or to the associated regular question(s) to ensure that a label is entered when answers are provided and vice versa.

Discussion

Lists presented in table format sometimes end with an "Other, specify" item, as in the following incomplete example of a data table:

...
Feature 8
Feature 9
Other

The following code could produce this output. The MUST parameters ensure that an answer is required in both questions if one is given in either question.

    FEATURE
    % question
    % note
       [SUFFIX:8]Feature 8
       [SUFFIX:9]Feature 9
    % categories
       *1*
       *2*
    % skip
    % condition
    % open
    ! ==============================================================
    OTHER MIN=0 MAX=1 MUST=(AOTHERBOX)
    % question
    % note
       Other <BOX>AOTHERBOX</BOX>
    % categories
       *1*
       *2*
    % skip
    % condition
    % open
    ! ==============================================================
    OTHERBOX MIN=0 MAX=1 STOCK MUST=(OTHER.EQ.1-2)
    % question
    % note
    % categories

    % skip
    % condition
    % open
       1 = C50 1 15
    ! ==============================================================

Note that <BOX></BOX> insertions can be put anywhere where text is expected (e.g., in answer categories, in notes, even in question text).

Inserting an other box in a table

Problem

You want to lay out several items in a table format and add an "other" choice at the end.

Solution

  1. create a STOCK-type question
  2. give that STOCK question a single answer code that corresponds to an open-end part; give the open-end part the characteristics required by the application
  3. place that STOCK question outside of the table page (as STOCK questions are not allowed within pages)
  4. in the note field of the "Other" item of the table, add the following to the text of the note (which will become the text of the line label in the table): <BOX>name_of_the_STOCK_question</BOX>; do the same in all language versions of the item text
  5. optionally, add MUST conditions to the STOCK question and/or to the associated regular question(s) to ensure that a label is entered when answers are provided and vice versa.

Discussion

Lists presented in table format sometimes end with an "Other, specify" item, as in the following incomplete example of a data table:

...
Feature 8
Feature 9
Other

The following code could produce this output. The MUST parameters ensure that an answer is required in both questions if one is given in either question.

    FEATURE
    % question
    % note
       [SUFFIX:8]Feature 8
       [SUFFIX:9]Feature 9
    % categories
       *1*
       *2*
    % skip
    % condition
    % open
    ! ==============================================================
    OTHER MIN=0 MAX=1 MUST=(AOTHERBOX)
    % question
    % note
       Other <BOX>AOTHERBOX</BOX>
    % categories
       *1*
       *2*
    % skip
    % condition
    % open
    ! ==============================================================
    OTHERBOX MIN=0 MAX=1 STOCK MUST=(OTHER.EQ.1-2)
    % question
    % note
    % categories

    % skip
    % condition
    % open
       1 = C50 1 15
    ! ==============================================================

Note that <BOX></BOX> insertions can be put anywhere where text is expected (e.g., in answer categories, in notes, even in question text).