Make a connections required in activity mini page

Hi Academy,

 

We would like to make one of the sections in the 'Connections' on the activity mini page mandatory when the category is "task".

Do you have any suggestions on how we can accomplish this?

 

Thank you in advance.

Like 1

Like

2 comments

Hello,

 

It depends on which column should be required here. One particular example: this method can be added to ActivityMiniPage:

save: function(callback, scope) {
				var opportunity = this.get("Opportunity");
				if (opportunity) {
					this.callParent(arguments);
				} else {
					Terrasoft.showInformation("Opportunity is required");
				}
			}

In this case saving of the mini page is not possible in case an opportunity is not connected to an activity and the information message will be shown on the page.

Hi Oleg,

 

Thank you, it works!

Show all comments