You can make part of the report conditional on whether there are any score records for a section, subsection or segmentation. You include a merge string to specify the conditional part's start and end.
You can have conditional parts within conditional parts, for example, a part that only appears if a section has been answered; and parts within that that only appear if each subsection has been answered. By definition, if at least one subsection has been answered, its parent section will be too.
If the respondent has answered any scoring question within the section/subsection/segmentation (i.e., has a maximum of points >0), even if the answer is worth 0, it will cause the part to appear.
Pro Tips:
- Only whole lines are supported, you can't use conditions inside a table cell.
- Although the Merge strings will each use a line in your report template and have a return on the end, it will not use any space on the output PDF or Word document.
- Make sure you consider page breaks when placing your end Conditional Part merge string.
- Normally, this will be used with conditional sections or subsections in the assessment, but if you do have a qualifying question within the section/subsection that has a score associated with it, you can use suppress scoring for the "not applicable" answer to ensure the part of the report doesn't appear.
The above merge strings are available with these parameters (listed under Ratings Based Text in the Merge Manager):
| How to define | Using the Merge Manager, select the Merge Type | Merge String |
| the start of a conditional part | Conditional Part Begin | {If} |
| the end of a conditional part | Conditional Part End | {EndIf} |
Base the Part on whether there are scoring questions for: | |||
| How to show | Using the Merge Manager | Parameter | Notes |
| Result for one section. | From "Show" choose Sections From "Section" choose Section name | SectionNo=n | If the Subsection parameter is not used, there will be one result. n=the section number |
| Result for one subsection. | From "Show" choose Subsections From "Section" choose Section name From "Subsection" choose Subsection to be displayed | SubSectionNo=n | The Section parameter must also be used. If the Questions parameter is not used, there will be one result. n=the subsection number |
| Result for one segmentation. | From "Show" choose Segmentations From "Segmentation" choose Segmentation to be displayed | SegmentationNo=n | Can not be combined with other options (e.g. Sections or Subsections) n = the Segmentation Number, this is available in the Segmentations function. |
Example:
{If[SectionNo=2]}
text and merge strings
{EndIf[SectionNo=2]}
Comments
0 comments
Please sign in to leave a comment.