i was trying to add button in the contract_form ( which is the from of ContractCDM) inside binding screen:
{
"id": "screen_2119d",
"name": "EndorsementScreen",
"screenElements": [
{
"type": "Section",
"id": "section_666df",
"name": "Endorsement",
"screenElements": [
{
"type": "DetachedRepeat",
"id": "detachedrepeat_1abc9",
"name": "binding-ContractEndorsement_relationship",
"title": {
"type": "Multilingual",
"multilingualText": {
"text": [
{
"locale": "de",
"text": ""
},
{
"locale": "en",
"text": ""
}
]
}
},
"groupRef": "group_10098",
"enableAdd": true,
"detailScreen": {
"id": "screen_b5702",
"name": "binding-ContractEndorsement_relationship-detail-screen",
"subHeaderBox": {
"id": "headerfooter_6d992",
"majorButtons": {
"button": [
{
"type": "EVENT",
"id": "button_fdb69",
"name": "Accept Endorsement",
"buttonStyling": {
"label": {
"type": "Multilingual",
"multilingualText": {
"text": [
{
"locale": "de",
"text": "Accept Endorsement"
},
{
"locale": "en",
"text": "Accept Endorsement"
}
]
}
},
"description": {
"text": [
{
"locale": "de",
"text": "Accept Endorsement"
},
{
"locale": "en",
"text": "Accept Endorsement"
}
]
}
},
"event": "event_accept_endorsement",
"scope": "HIDDEN_IN_READONLY_MODE",
"annotations": [
{
"name": "relationshipModelName",
"value": "ContractEndorsement_relationship"
},
{
"name": "CustomDependentElement",
"value": "\"[{\\\"display\\\":\\\"disabled\\\",\\\"logic\\\":{\\\"condition\\\":\\\"or\\\",\\\"rules\\\":[{\\\"fieldPath\\\":\\\"Endorsement.EndorsementData.EndorsementStatus\\\",\\\"values\\\":[\\\"accepted\\\",\\\"rejected\\\"]},{\\\"roles\\\":[\\\"systemAdmin\\\"]}]}}]\""
}
]
}
]
}
},
"screenElements": [
{
"type": "ControlGrid",
"id": "controlgrid_a0326",
"name": "Endorsement",
"title": {
"type": "Multilingual",
"multilingualText": {
"text": [
{
"locale": "de",
"text": "Endorsement"
},
{
"locale": "en",
"text": "Endorsement"
}
]
}
},
"layout": {
"lg": "4-4-4"
},
"row": [
{
"type": "Row",
"id": "row_62548",
"cell": [
{
"type": "Control",
"id": "control_09458",
"elementRef": "include_14b80_field_56d91"
},
{
"type": "Control",
"id": "control_867ba",
"elementRef": "include_14b80_field_52b79"
},
{
"type": "Control",
"id": "control_91a63",
"elementRef": "include_14b80_field_ada3c"
}
]
},
{
"type": "Row",
"id": "row_3759a",
"cell": [
{
"type": "Control",
"id": "control_8569e",
"elementRef": "include_14b80_field_c78d6"
}
]
}
]
}
]
}
}
]
}