AnsweredAssumed Answered

Backbone events for Linking/Unlinking a Record

Question asked by Gary Smart on Aug 25, 2016
Latest reply on Aug 26, 2016 by Matt Marum



Is there a way in javascript to listen for a linking or unlinking of a record (ie in a sub-panel)?


In an extended Case RecordView, I've tried monitoring this.model.on('all', ...) and also this.model.getRelatedCollection('contacts_cases').on('all') but nothing seems to reliably fire when I link or unlink a contact.


I know I can do this in php via a logic hook, but I was hoping for a front-end solution.


Any tips or guidance greatly appreciated.