BootstrapDialog.show({ message: 'Details Saved Successfully.', buttons: [{ label: 'OK', action: function(dialogItself) { $('#consumables').modal("show"); dialogItself.close(); } }] });