Subsections?

Asked by Anton Farber

Hi Adam,

it's me again :) For a new project I would like to use QueXF/-XML again as I have made a good experience using it for my first project. The new questionnaire requires the questions to be grouped in sections and subsections:

A Section
  1 Subsection
     Questions
  2 Subsection
    Questions
B Section
  1 Subsection
and so on

Is this possible with QueXML? For now I've tried the following.

<section>
<sectionInfo><position>before</position>[...]</sectionInfo> // For Section A
<sectionInfo><position>during</position>[...]</sectionInfo> // Subsection 1
</section>
<section>
<sectionInfo><position>during</position>[...]</sectionInfo> // Subsection 2
</section>

This kinda works but obviously it's not an ideal solution (=I have to remove the automatically generated "Section B:" but the "section header" still uses up space). Is there any better way to do this?

Ys, Anton

Question information

Language:
English Edit question
Status:
Solved
For:
queXML Edit question
Assignee:
No assignee Edit question
Solved by:
Adam Zammit
Solved:
Last query:
Last reply:
Revision history for this message
Best Adam Zammit (adamzammit) said :
#1

Hi Anton,

This is one way to proceed.

Alternatively you could use the <directive> element of the first question in the sub section, and set the <administration> to "before". This will add a small heading before that question (but separate from the question). The only issue with this is that the numbering will not restart.

Otherwise you could edit the code and create a new parameter to the addSection function which is something like "subsection" and in that case make the display more minimal.

Adam

Revision history for this message
Anton Farber (afarber) said :
#2

Thanks Adam Zammit, that solved my question.