set_dimension_analysis
Set multi-dimension analysis for a quiz form, replacing existing dimensions with field-code-based (knowledge quiz) or formula-based (scored quiz) dimensions. Pass an empty array to clear existing dimensions.
Instructions
Set the multi-dimension analysis (form.report.dimensionAnalysis) of a form, replacing it as a whole without touching overallAnalysis. In the knowledge_quiz scene each dimension needs fieldCodes (question codes); in the scored_quiz scene each needs a formula. Pass an empty dimensions array to clear the multi-dimension analysis. Call get_form first to read the question codes. Not supported for random_knowledge_quiz forms.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | No | Multi-dimension analysis title | |
| formId | Yes | The form ID to configure | |
| dimensions | No | The dimension list (at most 50). Pass an empty array to clear the multi-dimension analysis. | |
| showRadarChart | No | Whether to show the radar chart, default true | |
| showStandardLine | No | Whether to show the standard-score line on the radar chart |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| formId | No | The form that was edited | |
| dimensions | No | The dimensions after the replace | |
| dimensionCount | No | How many dimensions are configured now (0 = cleared) |