JS Function call in detail view

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Athensmusic
    Member
    • Feb 2020
    • 51

    JS Function call in detail view

    Hi there,
    any way to call js function in detail view?
    Eg. have an "Album" entity and I want to call console.log("Album Loaded"); in record detail view.
    Any help?
    Thanks
  • yuri
    Member
    • Mar 2014
    • 8454

    #2
    Hi,

    I recommend using a view setup handler for calling custom code within a detail view. https://docs.espocrm.com/development...etup-handlers/

    You can access the model there: this.view.model, listen to model events.
    If you find EspoCRM good, we would greatly appreciate if you could give the project a star on GitHub. We believe our work truly deserves more recognition. Thanks.

    Comment

    Working...