Jump to content

Disable The Confirmation Popup By Deleting


Recommended Posts

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.

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...