Skip to main content Take our 5-minute Community Survey. Open now through 4/11/2025. Click here to participate.
To anyone who can point me in the right direction.  I have done a lot of research, but can't seem to find the correct solution to my issue.

I need to take two buttons that we have created on Salesforce Classic, using the behavior Execute JavaScript, and recreate them using Visualforce.  Our issue is that the buttons show up on our computers, but it not available through the mobile app.

These are the two buttons we currently have,

Recreate buttons from

User-added image

Can anyone offer guidance on where to go.  I am aware I need to create a controller/apex class, but this is a little out of my knowledge base and I would like to learn how to go about recreating these buttons so they function online and on mobile.

Thanks,

Katrina Harsh
4 answers
  1. Nov 30, 2015, 10:05 PM
    That's really easy to do.  First you want to go into your Visualforce pages and make sure they are enabled for Salesforce1

    That's really easy to do. First you want to go into your Visualforce pages and make sure they are enabled for Salesforce1Then you have a choice.

    Then you have a choice.  You can use the Custom Button approach that will be available in both Classic and Salesforce1 / Lightning Experience but you cannot set the icon for this.  To do that you just goto Setup â‡¨ Customize â‡¨ Leads â‡¨ Buttons, Links, and Actions â‡¨ New Button or Link and fill out the following

    User-added image

    Your other option is to add it as a Visualforce page action.  This will only be available in Salesforce1 / Lightning Experience but you can customize the icon.

    User-added image

    Then once you have your action / button created you add it to the Salesforce1 and Lightning Experience Actions section of the page layout

    User-added image

    If you want it for classic you'd also add your Custom Button there.

    Then you're good to go and you'll see it in Salesforce1

    User-added image

    You can also do both a button for classic and an action for Salesforce1 but it's a little tough to tell them apart (without trial and error) if you give them the same label.
Loading
0/9000