Skip to content

Instantly share code, notes, and snippets.

@elchele
Created April 12, 2017 16:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save elchele/3f454b3e90dd9a9956f944d3cbc8f088 to your computer and use it in GitHub Desktop.
Save elchele/3f454b3e90dd9a9956f944d3cbc8f088 to your computer and use it in GitHub Desktop.
Example demonstrating changes to createview fields upon relate field changing
({
/* File: ./custom/modules/Contacts/clients/base/views/create/create.js */
extendsFrom:'CreateView',
initialize: function(options){
this._super('initialize', [options]);
this.model.on('change:account_id', this.test, this);
},
test: function(){
this.model.set('description', 'This is my custom value');
}
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment