Define an action button in your workspace and map it to the built-in action that initiates a contract request.
Before you begin
Role required: admin
Procedure
Add initiate contract request functionality to your workspace.
Navigate to
Select New .
Set the action to the type UXF client action and map the action to the initiate contract request functionality and by entering the following field values.
Table 1. Initiate contract request fields
Field
Value
Implemented as
UFX Client Action
Specify client action
Initiate contract
On the form, fill in the other fields.
Right-click the form header and select Save .
Create an event mapping for the initiate contract declarative action.
Select Advanced view listed under Related Links.
Select UX Add-on Event Mappings related list.
Select New .
In the Source Component field, select Action bar.
In the Source Declarative Action field, select initiate_contract.
In the Controller field, select Form.
In the Target Event field, select [Record Page] Open modal.
In the Target Payload Mapping field, define the fields to send by pasting the following JSON code.
{
"container": {
"fields": {
"binding": {
"address": [
"fields"
]
},
"type": "EVENT_PAYLOAD_BINDING"
},
"params": {
"binding": {
"address": [
"params"
]
},
"type": "EVENT_PAYLOAD_BINDING"
},
"route": {
"binding": {
"address": [
"route"
]
},
"type": "EVENT_PAYLOAD_BINDING"
}
},
"type": "MAP_CONTAINER"
}
On the form, fill in the other fields.
Select Submit .
Optional:
Configure visibility conditions for initiate contract action button.
Select Advanced view listed under Related Links.
Select to the Conditions related list.
Set the conditions for the visibility of the action button.
Result
An action button to initiate contract requests from a contract record is available in your workspace.
Figure 1. Initiate contract action configured