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
AArzaAArza 

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
 
<apex:commandButton value="{!$Label.Cancel}" action="{!Cancel}" onclick="return confirm('{!$Label.Proceed_with_Cancellation}');" styleclass="slds-button slds-button_brand" style="width:150px;"/>

User-added image
 
Sanjay Bhati 95Sanjay Bhati 95
Hi AArza,

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.
AArzaAArza
Hi Sanjay, I am fine with the text. I want to the change the wording of the buttons "ok" and "Cancel".