I am working on integrating third party application with Salesforce. As part of a use case, I am looking for opening a visualforce page using anchor tag in a browser from an Android mobile app - salesforce1. It works fine when I try to do that using window.open() function. But when I hit that anchor tag, salesforce1 app gives me an option to open the link using Salesforce1 or my default browser. Is there a workaround to avoid this, as I want the visualforce page to be opened using browser without providing the user with that option at all.

Also, is it possible to open a visualforce page in a browser using sforce.one.navigateToURL() function?


you can open visualforce page using sforce.one.navigateToURL() function using below format : -

sforce.one.navigateToURL('/apex/OppClosureDeclaration?testvariable ='+records1[0].Id);

think it helps.

  • In this case, is OppClosureDeclaration your visualforce page? This would still open within Salesforce1. I want my visualforce page to open up in browser window when I hit a link from Salesforce1.
    – Harsha V
    May 21 '17 at 19:02

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.