How to display timing with app.alert.show(id, options) to display message for 10 seconds?

How to display timing with app.alert.show(id, options) to display message for 10 seconds?

Currently it is displaying message for around 3 seconds only.

When I set the option "autoclose:false", the message never disapper, but I dont want to use that.

I want to show message for 10 or 15 seconds, and then disappear.

I have gone through http://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_7.5/API/Sidecar/Alerts/index.html

but no option for timing.

  • Hi Hiren Darji,

    You need to make autoClose to true, and need add one parameter autoCloseDelay with time limit.It will be something similar like below,

    app.alert.show('success', {
        level          : 'success',
        messages        : 'Successful',
        autoClose      : true,
        autoCloseDelay  : 10000,
    });
    
  • Hi hiren

    you are showing message like this with id '123'

    app.alert.show('123', {
      level: 'confirmation',
      messages: 'Confirm?',
      autoClose: false,
    });

     

    now dismiss this message after 10 sec interval using js function

     

    app.alert.dismiss('123');