# Approval Decision Panel Example Config

## Standard Approval Setup

| Parameter | Example Value |
| --- | --- |
| `decisionField` | Select the approval decision field, for example `ApprovalDecision` |
| `commentField` | Select the approval comment field, for example `ApprovalComment` |
| `titleText` | `Approval Decision` |
| `subtitleText` | `Review the request and choose your decision.` |
| `approveLabel` | `Approve` |
| `rejectLabel` | `Reject` |
| `reviseLabel` | `Request Changes` |
| `defaultDecision` | blank |
| `requireCommentOnReject` | `true` |
| `requireCommentOnRevise` | `true` |
| `showCommentBox` | `true` |
| `commentPlaceholder` | `Add your reason or comment...` |
| `panelStyle` | `standard` |
| `showStatusSummary` | `true` |
| `readonlyText` | `No approval decision has been captured yet.` |

## Custom Decision Options Example

Use `decisionOptionsJson` only when the standard Approve, Reject, and Request Changes decisions are not enough.

```json
[
  {
    "code": "approve",
    "label": "Approve",
    "tone": "approve",
    "helper": "Confirm this request can continue.",
    "requireComment": false
  },
  {
    "code": "reject",
    "label": "Reject",
    "tone": "reject",
    "helper": "Decline this request with a reason.",
    "requireComment": true
  },
  {
    "code": "revise",
    "label": "Request Changes",
    "tone": "revise",
    "helper": "Send back for correction.",
    "requireComment": true
  },
  {
    "code": "escalate",
    "label": "Escalate",
    "tone": "escalate",
    "helper": "Route this request to a higher authority.",
    "requireComment": true
  },
  {
    "code": "hold",
    "label": "Hold",
    "tone": "hold",
    "helper": "Pause until more information is available.",
    "requireComment": false
  }
]
```

## Saved Output

For the standard setup:

| User action | Saved decision value | Comment behavior |
| --- | --- | --- |
| Approve | `approve` | Comment optional |
| Reject | `reject` | Comment required when `requireCommentOnReject = true` |
| Request Changes | `revise` | Comment required when `requireCommentOnRevise = true` |
