Another Salesforce blog!!!

Salesforce, Apex

How to add a confirm dialog to a command button


<apex:commandButton reRender="pb" value="Associate Payment" action="{!associatePayment}" onclick="if(!confirm('Do you want to proceed?')){return false};" title="Associate Payment"/>

Leave a Reply

Your email address will not be published. Required fields are marked *

*