Onclick JavaScript buttons are not supported in the Salesforce Mobile App on iOS and Android devices, even though they function correctly in the Salesforce Classic desktop browser experience. Onclick JavaScript buttons are commonly used to open a Visualforce page from a record detail page, or to call an external web service. This article describes supported alternatives for replicating onclick JavaScript button functionality within the Salesforce Mobile App.
The recommended approach is to replace an onclick JavaScript button with a Visualforce page backed by an Apex controller, and expose that page through the mobile app using one of the methods below.
apex:commandButton element to add the button functionality within the page.000384337

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.