AnsweredAssumed Answered

Clicking on save button does not trigger custom function

Question asked by sidhu sidhu on Jul 18, 2016
Latest reply on Jul 19, 2016 by Ramana Raju Santhana

Hi All

 

        I was trying to trigger a custom function on clicking the save button in the accounts module using the create-actions.js file

 

/<>/custom/modules/Accounts/clients/base/views/create-actions/create-actions.js

 

({

    extendsFrom: 'CreateView',

    initialize: function(options) {

        options.meta = _.extend({}, app.metadata.getView(null, 'create-actions'), options.meta);

        this._super('initialize', [options]);

        this.events['click [name="save_button"]'] = 'handleParent';

    },  

    handleParent: function()

  { 

  console.log("change Color Box");

  }

 

})

 

I have also tried with

events: {

        'click [name="save_button"]': 'handleParent',     

  },

 

But this is not triggering.Can you please help me with this.

 

 

Regards

Sidhu Tevfik Tümer Prashant Patel

Outcomes