How do I make a field non editable in detail with code

Hi,



I have a detail that has been added on an opportunity in code, so I cannot make it read-only with the opportunity designer. How do I set up the code so that make a decimal field in the detail read-only ?



Thanks,



Damien

Like 0

Like

1 comments

Hi Damien,

 

If this is a detail with an editable list simply add this code:

"enabled": false

to the definition of the column that you need to disable (should be added to the detail page schema, not detail schema). So it should look like this:

{
				"operation": "merge",
				"name": "columnName",
				"enabled": false
				}
			},

and refresh the page.

 

Best regards,

Oscar

Show all comments