Question

Unlock decision maker field

Hello,

I am just wondering how to unlock the decision maker field on opportunity the bant portion.

Thanks

Like 0

Like

3 comments
Best reply

Tyler Rainey,

 

Here is the actual code that locks the field:

{
					"operation": "insert",
					"name": "OpportunityDecisionMaker",
					"values": {
						"layout": {
							"row": 2,
							"column": 5,
							"colSpan": 19
						},
						"bindTo": "DecisionMaker",
						"controlConfig": {
							"enabled": false
						}
					},

locks is performed using the controlConfig enabled parameter:

 "controlConfig": {
							"enabled": true
						}
				}

This code is located in the BaseOpportunityPage schema from the "Opportunity" package.

 

If you need to unlock this column you need to override the controlConfig. To do this just add this code (or modify the existing one) in the OpportunityPageV2 schema from the "Custom" package (or the package you use for development):

{
				"operation": "merge",
				"name": "OpportunityDecisionMaker",
				"values": {
					"layout": {
						"colSpan": 19,
						"rowSpan": 1,
						"column": 5,
						"row": 2
					},
                  "controlConfig": {
							"enabled": true
						}
				}
			},

As a result the column will be unlocked:

Best regards,

Oscar

Dear Tyler,

 

The logic of all BANT fields can be found in OpportunityPageV2 schema in the Opportunity package in the BantProfile object. I recommend investigating the code of the schema to modify this field according to the requirements. 

 

Best regards,

Angela

Angela Reyes,

There is nothing related to the "OpportunityDecisionMaker" field in that schema.

Am I missing something?

 

Thanks

Tyler Rainey,

 

Here is the actual code that locks the field:

{
					"operation": "insert",
					"name": "OpportunityDecisionMaker",
					"values": {
						"layout": {
							"row": 2,
							"column": 5,
							"colSpan": 19
						},
						"bindTo": "DecisionMaker",
						"controlConfig": {
							"enabled": false
						}
					},

locks is performed using the controlConfig enabled parameter:

 "controlConfig": {
							"enabled": true
						}
				}

This code is located in the BaseOpportunityPage schema from the "Opportunity" package.

 

If you need to unlock this column you need to override the controlConfig. To do this just add this code (or modify the existing one) in the OpportunityPageV2 schema from the "Custom" package (or the package you use for development):

{
				"operation": "merge",
				"name": "OpportunityDecisionMaker",
				"values": {
					"layout": {
						"colSpan": 19,
						"rowSpan": 1,
						"column": 5,
						"row": 2
					},
                  "controlConfig": {
							"enabled": true
						}
				}
			},

As a result the column will be unlocked:

Best regards,

Oscar

Show all comments