Activity Forums Salesforce® Discussions Move Custom Javascript Buttons to Salesforce1

  • Udit

    Member
    April 14, 2016 at 7:49 am

    Hi,

    We can't create custom javascript button in salesforce1 but you can use inline vf page to do so , For now this is the only possibility to achieve that.

  • Naman

    Member
    April 14, 2016 at 7:53 am

    Try using global action to achieve that in lightning.

  • Abhinav

    Member
    April 14, 2016 at 7:54 am

    Yes, right Custom buttons with OnClick Javascript will not be available in Salesforce1, and it is expected functionallity.

  • Parul

    Member
    September 19, 2018 at 11:37 pm

    Hi,

    Salesforce1 doesn't support custom buttons, but you might consider moving that button's functionality to a Publisher Action, which is supported in both the web GUI and in Salesforce1. (This is assuming your custom button is a detail button.)

    Hope this helps.

  • shariq

    Member
    September 20, 2018 at 11:20 pm

    Hi,

    However, as a workaround, you can move your javascript into a visualforce page and use this visualforce page for the custom button. This way, the custom button will be available in Salesforce1 provided that the visualforce page has "Available for Salesforce mobile apps" option enabled. You can also use a publisher action instead of a custom button for the saem visualforce, which is a more preferred way on the Salesforce1 platform.

    Hope this helps.

  • Pooja

    Member
    February 17, 2020 at 2:45 pm

    We have many custom javascript buttons in our org but we would not move these buttons to Salesforce so there is no specific way to do that.

Log In to reply.

Popular Salesforce Blogs