peterhanse Posted March 22, 2016 Report Share Posted March 22, 2016 Good morning, Is it possible to disable the confirmation popup by deleting a record. I have an auto deleting page but must still manually confirm the popup. can this be done through the localizations or styles? regards Peter Quote Link to comment Share on other sites More sharing options...
peterhanse Posted March 28, 2016 Author Report Share Posted March 28, 2016 hi all. someone ideas Quote Link to comment Share on other sites More sharing options...
Walter Posted March 29, 2016 Report Share Posted March 29, 2016 Hello Peter, I have used a JavaScript that "confirmed" pop up. I know, it is not the best code, but it worked: <script type="text/javascript"> function to_confirm() { var alertWindow = document.getElementsByClassName("Alert")[0]; alertWindow.getElementsByTagName("input")[2].click(); } function to_delete() { document.getElementById("Mod0DeleteRecord").click(); setTimeout(to_confirm,1000); } if(document.getElementById("caspioform")) { setTimeout(to_delete,1000); } </script> You can change "1000" to "100", if your DataPage is fast enough. peterhanse 1 Quote Link to comment Share on other sites More sharing options...
peterhanse Posted March 29, 2016 Author Report Share Posted March 29, 2016 Thank you Walter, Works perfect. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.