Rename Buttons in Form View

In a submitted Sales Order, you can see multiple options under the 'Create' option:

You can use this custom script to rename the buttons:

Using this script, we have removed/hidden the unwanted buttons, and then renamed one:

Note: To learn more about the JS APIs, visit the frappe documentation.
To check the method which is called, you will need to check JS file for that doctype.
Was this article helpful?
Thank you!