Remove the fields from the add mini page

Hi Guys!

Could you please let me know how can I remove these fields from the contact add page?

Thanks!

Like

1 comments

Hello Edward!

Unfortunately, you cannot edit the mini page using the user's tools. But, you can easily remove or hide these elements in the 'diff' section of the replacing 'ContactMiniPage' module in Configuration. Here's an example of the removal code:

define("ContactMiniPage", [],
	function() {
		return {
			entitySchemaName: "Contact",
			details: /**SCHEMA_DETAILS*/{}/**SCHEMA_DETAILS*/,
			attributes: {},
			mixins: {},
			methods: {},
			diff: /**SCHEMA_DIFF*/[
				{
					"operation": "remove",
					"name": "Department",
				},
				{
					"operation": "remove",
					"name": "MobilePhone",
				}
			]/**SCHEMA_DIFF*/
		};
	}
);

You will find additional information here:

https://academy.bpmonline.com/documents/technic-sdk/7-8/setting-edit-pa…

Show all comments