Documentation
RocketFuel
<  Widgets

Approvals

### Description
Authorize or deny multiple requests through an intuitive display.

### Instance Options
|  Option       | Property | Comments | Default Value | Source |
| ----- |:-----:| ---- | ---- | ---- |
| Require rejection comment | `require_rejection_comment` | Require comments for rejected items. | `true` | Options schema |
| Show variables | `show_variables` | Require comments for rejected items. | `true` | Options schema |
| Hide actions | `hide_actions` | Hide actions on the widget. | `true` | Options schema |
### Templates
| Name | Comments |
| -------- |:---|
| `comment-modal.html` | Enable comments on the widget. |

### Batch Approvals
![Bulk Approvals](https://assets-global.website-files.com/58c1b96be85e423369f87772/5f4d59fd19a4180bc7c236e9_batch.svg)
### Description
Quickly review, approve, reject and comment on multiple requests with this latest addition to the RocketFuel widget library.
### Instance Options
|  Option       | Property | Comments | Default Value | Source |
| ----- |:-----:| ---- | ---- | ---- |
| View details in modal | `details_modal` | Enable detailed view of items in the modal. | `true` | Options schema |
| Require reject comment | `require_reject_comment` | Require uses to provide a comment when rejecting a request. | `true` | Instance Options |
| Enable approval comment | `enable_approval_comment` | Allow users to provide an optional approval comment. | `true` | Instance Options |
| Record Template | `record_template` | Sets the template for the Approval Record widget populated in the approval-details.html template. | `nr-approval-record-default.html` | Additional options |
| Approval Modal Template | `approval_modal_template` | Set the template to be used when an individual record is viewed in the details modal. | `approval-details.html` | Additional options |
### Templates
| Name | Comments |
| -------- |:---|
| `approval-details.html` | Default template used to render modal when the details modal option is enabled. |
| `nr-confirmation-modal.html` | Default template used to confirm or reject a request. |
### Configuration
```json
{
"details_modal": {
"value": "true",
"displayValue": "true"
},
"require_reject_comment": {
"value": "true",
"displayValue": "true"
},
"enable_approval_comment": {
"value": "true",
"displayValue": "true"
},
 “record_template”: {
               “value” : "nr-approval-record-default.html",
               “displayValue”: "nr-approval-record-default.html"
} ,
"approval_modal_template": {
"value": "test.html",
"displayValue": "test.html"
}
}
```

### Approvals Record
![Approvals Record](https://assets-global.website-files.com/58c1b96be85e423369f87772/5f4d5f826ac0274f2ec7d842_ticket.svg)
### Description
View an active approval state in ticket form.
### Instance Options
|  Option       | Property | Comments | Default Value | Source |
| ----- |:-----:| ---- | ---- | ---- |
| Show Description | `show_description` | Enable items actions to pull event data. | `true` | Options schema |
| Hide Price | `hide_price` | Shows the price field for requested items. | `true` | Options schema |
| Enable UI Actions | `ui_actions` | Enable UI actions on the widget.| `true` | Options schema |
| Use Approval Record Activity Stream | `use_approval_record_activity_stream` | If true, the activity stream of the approval record will be shown. Else, the activity stream for the request record will be shown. | `true` | Options schema |
### Templates
| Name | Comments |
| -------- |:---|
| `nr-approval-record-default.html` | Displays the default template. |
### Configuration
```json
{
 "data": {
   "item": {
     "number": "RITM0000001",
     "stage": "fulfillment",
     "sys_created_on": "2017-05-14 13:58:44",
     "price": "$600.00",
     "sys_updated_on": "2017-05-14 13:58:46",
     "priority": "4 - Low",
"req_sys_id": "fake_sys_id"
   },
"form": {
"display_value": "REQ0010032",
"sys_id": "969a3effdb20730027c59c76db9619dc",
"table": "sc_request",
"title": "REQ0010032",
"view": "sp",
"label": "Request",
"_fields": {
"number": {
"lable": "Number",
"displayValue": "0000000"
}
}
},
   "record": {
     "stage": "fulfillment",
     "stages": [
       {
         "active": false,
         "label": "Request Approved",
         "completed": true,
         "value": "request_approved"
       },
       {
         "active": false,
         "label": "Completed",
         "completed": true,
         "value": "complete"        
}
     ]
},
"table": "sc_req_item"
 },
"options": {
"parent_page": "sc_requests",
"ritm_parent_page": "sc_request",
"template": "nr-ticket-details-default.html"
}
}
```

### Approval Details
![Approval Details](https://assets-global.website-files.com/58c1b96be85e423369f87772/5f4d6d79cd5653343d74f9b5_record.svg)
### Description
Authorize or deny multiple requests through an intuitive display.
### Instance Options
|  Option       | Property | Comments | Default Value | Source |
| ----- |:-----:| ---- | ---- | ---- |
| Enable item actions | `enable_item_actions` | Enable item actions on the widget. | `true` | Options schema |
### Templates
| Name | Comments |
| -------- |:---|
| `nr-approval-details-default.html` | Displays the default template. |

Want to Learn More? Talk to an Expert
Contact Us