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
2 comments
20:08 Mar 04, 2024
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.
Show all comments