Skip to content

Commit 770b1a0

Browse files
feat: add title and description fields for section nodes in workflow models
1 parent 87c0ca5 commit 770b1a0

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

src/form/workflow/models.tsp

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,12 @@ namespace CoreSystem.FormWorkflow {
8686
@example("開始表單")
8787
label: string;
8888

89+
@doc("Section title shown to respondents. Only applicable for section nodes.")
90+
title?: string;
91+
92+
@doc("Section description shown to respondents. Only applicable for section nodes.")
93+
description?: string;
94+
8995
@doc("The condition rule for the node, only for condition nodes")
9096
conditionRule?: ConditionRule;
9197

@@ -104,6 +110,8 @@ namespace CoreSystem.FormWorkflow {
104110
id: "b23f2668-c2dc-4213-88fe-eceedff46398",
105111
type: NodeType.section,
106112
label: "Personal Information",
113+
title: "Personal Information",
114+
description: "Please provide your basic information",
107115
conditionRule: #{ source: ConditionSource.nonChoice, question: "9a843aa0-8451-4e3b-b6a0-8c0e994e9040", pattern: "^([6-9]|[1-9][0-9]+)$" },
108116
next: "c34g3779-d3ed-5c24-99gf-fdffegg57409",
109117
nextTrue: "d45h4880-e4fe-6d35-00hg-gegffhh68510",
@@ -112,6 +120,12 @@ namespace CoreSystem.FormWorkflow {
112120
model NodeResponse {
113121
...NodeStructure;
114122

123+
@doc("Section title shown to respondents. Only applicable for section nodes.")
124+
title?: string;
125+
126+
@doc("Section description shown to respondents. Only applicable for section nodes.")
127+
description?: string;
128+
115129
@doc("The condition rule for the node, only for condition nodes")
116130
conditionRule: ConditionRule;
117131

0 commit comments

Comments
 (0)