Suggest a feature
×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: Javascript
Posted by: Marco Matta
Added: Sep 2, 2021 8:13 AM
Views: 299
Tags: sugarcrm
  1. handleSave: function()
  2. {
  3.    // code...
  4.    // app.controller.context.get('model').attributes.field_name // get form values
  5.    
  6.    // show a message
  7.    /*
  8.    app.alert.show('message-id', {
  9.        level: 'error', // message status - can be 'success'
  10.        messages: 'Message text.',
  11.        autoClose: true
  12.    });        
  13.    */
  14.  
  15.    // ... validate values
  16.    // // cancel the save
  17.    // this.handleCancel();
  18.    // or continue saving normally
  19.    // this._super('handleSave');
  20. }