Fields
Fields
The fields section is required when a form component (e.g., IssueForm) is part of the widget. These fields define the input elements in the form and must align with the definition. fields of the form component and the payload of the associated service (e.g., createNewIssue).
"fields": {
"issue_title" : {
"label": "Title",
"data": "title",
"type": "text"
},
"issue_priority" : {
"label": "Priority",
"type": "select",
"options": ["Low", "Medium", "High"]
}
}
Field properties
| Prop Name | Description | Data Type | Required | Example |
|---|---|---|---|---|
data | Data key to map the field's value to the service payload. | string | no | "title" |
label | Display text for the field in the form UI. | string | no | "Title" |
name | Unique identifier for the field, used in form and service payload. | string | yes | "title" |
options | Options for select type fields. | array string | no | ["Low", "Medium", "High"] |
type | Input type for the form (e.g., text, select). | string | no | "select" (for issue_priority) |