C
|
copper21 6/30/2025 |
I just wrote something similar. There are a few differences between mine and yours. I am using V11. Try this out: params["value"] = this.getValue(); //Prompt user to choose if they want to update Presented Date on all Awards associated with this banquet Swal.fire({ |
G
|
Grdimitris 6/30/2025 |
PHPRunner 11 has newer Sweetalert 2 version and I had similar problem with Swal.showLoading() and proposed me this So I asked ChatGPT your problem and answered Here’s how you can rewrite your code in the ClientBefore event of your custom button: // ClientBefore event // return false to postpone the default submission submit() (or ajax.submit()) is the PHPRunner AJAX helper that hands control back to the Server event after an async task finishes If you really want to keep a named wrapper, you could do: function submitAction() { // …in your Swal callback… but it’s usually simplest to call submit() (or ajax.submit()) directly." |
D
|
druck281 author 6/30/2025 |
So in my original code, I did return false and used submit() in an attempt to continue to the server event. After reading through the responses, I decided to try the simplest solution first and it actually worked. Thank you both for your help! One simple change and the code worked... |