how to activate sweetalert2 in phpmaker
As a matter of fact, Sweetalert2 is already used by PHPMaker v2023 to display confirmation dialog box, for example, when you want to delete a record.
if I add, edit and delete it appears on the top right of the toast message how to change to sweetalert. thanks
You may use the “toast” event to cancel the toast and show your own alert, e.g.
$(document).on("toast", args => {
args.show = false; // Cancel the toast
console.log(args); // Check the available info and show your own alert, e.g. alert(args.message)
});