You need to sign in to do that
Don't have an account?
Ahilya Srivastava
How to add a confirm dialog to a command button?
I'd think this would work just fine, but it seems to prevent the action function from firing regardless of the confirm response
<apex:commandButton value="Remove All" action="{!removeAll}" rerender="form" status="LoadingStatus" onclick="return confirm('Are you sure?');"/>
All Answers
https://www.codekiat.com/2019/07/confirm-dialog-in-salesforce-lightning.html
--
Naveen K N