function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Harikrishna MandadapuHarikrishna Mandadapu 

Stop getting confirmation message

I am overiding standard delete button on my visualforce page. When I click on delete link in my related list, I am getting confirmation message asking 'Yes' or 'cancel'. Any way to stop getting confirmation popup.
Harikrishna MandadapuHarikrishna Mandadapu
User-added image
this is the page where I am clicking on delete link. I want to avoid popup confirmation when I click on it.
SandhyaSandhya (Salesforce Developers) 
Hi Harikrishna,

Please check your Visualforce page if you are calling any javascript function confirmDelete()  before delete operation anywhere.

or below code anywhere in your Visualforce page

<apex:commandLink value="Remove" onclick="return confirm('Are you sure?')" action="{!removeMember}" >

If so, please remove that code.


Please accept my solution as Best Answer if my reply was helpful. It will make it available for other as the proper solution. If you felt I went above and beyond, you can give me kudos.
 
Thanks and Regards
Sandhya

 
Harikrishna MandadapuHarikrishna Mandadapu
Hi Sandhya,
I am not calling any javascript method for that. It is showing confirmation popup dialog box as it is standard page.Need solution to avoid/bypass it.Post confirmation, I am redirecting to my(custom) VF page.
SandhyaSandhya (Salesforce Developers) 
Hi Harikrishna,

As this is the standard functionality of detail page, to avoid this, you need to override the delete link in Activity history.

Please refer below post which has a similar discussion on that.

https://developer.salesforce.com/forums/?id=906F0000000AqpNIAS 

https://success.salesforce.com/answers?id=90630000000hfWSAAY

Hope this helps you.

Thanks and Regards
sandhya