Form Section

A section of type FORM  produces a form where data can be inputted.

Attributes

id

a unique ID that allows the form to be referenced by the application and by the report.

backgroundColor

defines the background color using hex codes.

opacity

sets an opacity over the backgroundColor. A number between 0 - 1.

class

produces a border and fill around the FORM section defined by the backgroundColor.

Title

Gives the SUMMARY section a title.

Instruction

Write an instruction.

QuestionSet        

A questionSet wraps the structure of a question or series of questions. A questionSet can have a title.

Columns

Columns in a section of type FORM contain column(s).

Column

A column provides the vertical layout of the input fields.

Attributes

title

gives a column a title.

Questions

Questions wrap the question to allow for multiple question grouping in a questionSet. Questions contain multiple question(s).

Question

Defines the question to be asked and the type of question.

Attributes

id

a unique ID that allows the form to be referenced by the application and by the report.

type

  1. RATING -
  2. LONGTEXT -
  3. NUMBER -
  4. LIST -
  5. HIDDEN -

number

displays the number of the question.

metric

defines the metric for the question:

  1. SCORE
  2. NOTES
  3. RESPOND
  4. FORM

Instruction

Write an instruction.

Text

The text for the question.

Attributes

helpTip

provides a tooltip on mouse hover.

Input

Defines the space for answering the question.

Attributes

value

assigns a given value to a RATING question answer. The order corresponds to the order of the columns.

helpTip

provides a tooltip on mouse hover.

id

for question of type HIDDEN, the id must be the same as the question id for the question you are recording the value for.

metric

for question of type HIDDEN, the metric TOTAL stores the response.

value

defines the maximum value for the question answer.

Example

<moxydoc:section id=”Survey” type=”FORM”>

  <moxydoc:questionSet>

     <moxydoc:title>Organisational Health</moxydoc:title>

           <moxydoc:columns>

               <moxydoc:column title="At risk" />

               <moxydoc:column title="Vulnerable" />

               <moxydoc:column title="Viable" />

               <moxydoc:column title="Sustainable/Successful" />

               <moxydoc:column title="Thriving" />

           </moxydoc:columns>

           <moxydoc:questions>

               <moxydoc:question type="RATING" id="CAS.WEL" metric="SCORE">

                 <moxydoc:instructions>Answer the following:</moxydoc:instructions>

                 <moxydoc:text >Governance</moxydoc:text>

                 <moxydoc:input value="1"  helpTip=”Purpose not linked to community“/>

                 <moxydoc:input value="2"  />

                 <moxydoc:input value="3"  />

                 <moxydoc:input value="4"  />

                 <moxydoc:input value="5"  />

              </moxydoc:question >

           </moxydoc:questions>

            </moxydoc:questionSet>

</moxydoc:section>


Click to see Comments

Help comments powered by Disqus