[Vtigercrm-developers] JS event trigger on tab change in detail view

Alan Lord alanslists at gmail.com
Tue Jul 27 07:44:46 GMT 2021


On 27/07/2021 07:23, nilay khatri wrote:
> We have Headerscript which injects few elements in the Details view of 
> records.
> 
> The problem is when the user switches between the Tabs, summary, detail, 
> related lists. There seems to be no specific event which is triggered 
> after the particular tab has been loaded.

Am pretty sure it's this:

app.event.on("post.relatedListLoad.click", function(event, container) {
	...
}


Check in Vtiger_Detail_Js

Obviously, you must have the right container element to attach the 
listener to in the first place.

HTH

Al



More information about the vtigercrm-developers mailing list