exit() hides alert message

I use the alert message to tell the user the reason for aborting the application. If the alert is followed by an sc_exit() no alert is displayed. This limits the use of sc_alert() and there seems not to be an alternative.

Please make the sc_alert() more useful.

1 Like

Una opción que puedes usar es ir por la librería de SweetAlert de forma directa.

Algo así como:

echo "Swal.fire('Oops...', 'Something went wrong!', 'error')";

Esto te permite tener un control más completo sobre todas las opciones de la librería ya trae por defecto, y que lamentablemente, a la fecha, ScriptCase no explota.

ScriptCase (en su version 9.7) hace uso de la versión 8.11 de SweetAlert, puedes ver más información acá:
sweetalert2 - npm