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
Karna_ShivaKarna_Shiva 

Salesforce1 doesn't support custom button with javascript code

I have created custom button and used javascript code to display the error messages and redirect to wizard pages but salesforce1 doesn't display that button.

Salesforce1 doesn't support javascript, how to over come this?

How to use custom button with any web lanaguage code to display error msg or redirect to different page on salesforce1
 
Amit  TrivediAmit Trivedi
Hi Karna Shiva use publisher action and Checked the checkbox
(Available for Salesforce mobile apps) on vf page to enable for mobile.

Set up --> Create --> Global Action -->Publisher layout.
Study about publisher action.

Please select my answer as best answer if it is helful to you.
Karna_ShivaKarna_Shiva
Already I have tried this.
my scenario: when user click button it supposed to check mandatory fields or validation rules and then it supposed to redirect to differernt page
BenPBenP
I'd love to know if you ever found a good solution to this.  I am facing the same issue.
Karna_ShivaKarna_Shiva
I solved this issue thorugh Visualforce page, when ever page get called the javascript will execute