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
Sergio Mac IntoshSergio Mac Intosh 

Override SF1 App Cancel & Save button with javascript function


How can i activate the save button on visualforce page in SF1App with my javascript method?

Is it also possible to change the text on the cancel button? Instead of cancel i would like to call it 'back'.


Best Answer chosen by Sergio Mac Intosh
I assume you are talking about Salesforce1 actions based on Visualforce pages, as that is where you get those standard buttons.

You can interact with these buttons via the Sfdc.canvas.publisher JavaScript object. There's an introduction in the following Trailhead module that shows how to execute the button programmatically: