You need to sign in to do that
Don't have an account?
Mike Fitch
Delete button popup window not functioning
I have a VF form that i created and I included a delete button with a popup window that asks the user to confirm deletion. The cancel button works properly, but if the user clicks OK, it takes them to a page that has an error message saying URL no longer exists. Here is the code:
<script type="text/javascript">
function confirmDelete() {
return confirm('Are you sure you want to delete?');
}
</script>
<apex:commandButton action="{!delete}" value="Delete" onclick="if(!confirmDelete()) return false;" reRender="PrecallForm"/>
Any suggestions?
<script type="text/javascript">
function confirmDelete() {
return confirm('Are you sure you want to delete?');
}
</script>
<apex:commandButton action="{!delete}" value="Delete" onclick="if(!confirmDelete()) return false;" reRender="PrecallForm"/>
Any suggestions?
Can you please post the rest of the code?
Thanks,
Kaustav
Can you give that info and the VF page code? The problem might lie in the way a parameter called return url is getting set. For that it will be helpful if you can provide the VF page code and the way the page is launched that is the url of the page when it is loaded.
Thanks,
Kaustav