You need to sign in to do that
Don't have an account?

Can I customize the message for On click event on Cancel button.
I have created an onclick event on the cancel button in my visualforce page and it works as expected. I want to change the wording for OK and Cancel button to Yes, Proceed and No, Stay.
Is it possible. if yes, can someone suggest me how or share sample code

Is it possible. if yes, can someone suggest me how or share sample code
<apex:commandButton value="{!$Label.Cancel}" action="{!Cancel}" onclick="return confirm('{!$Label.Proceed_with_Cancellation}');" styleclass="slds-button slds-button_brand" style="width:150px;"/>
Please change the text in your custom label. To change the text go to Setup > Quick Find Box > Type Label > Click on Custom Label then search 'Cancel' and replace the text that you want to change.