+ Start a Discussion
Rupali PophaliyaRupali Pophaliya 

Sforce.one.navigateURL not working - "The page you are trying to access is not supported on mobile device"

Hi,

We are trying this : Sforce.one.navigateURL("/001/e") in salesforce1 but getting error like this "The page you are trying to access is not supported on mobile device"

We are trying following code:

<apex:page>
<Script>
    function MyApp () {
        this.createAccount = function () {
            sforce.one.navigateToURL ("/ 001 / e");
        };
    } 

    var app = new MyApp ();

    btnCreateAccount function () {
        app.createAccount ();
    }
</ Script>
<input type="button" value="Create Account" onclick="btnCreateAccount()" id="btnCreateAcct"/>
</apex:page>
We are referring this salesforce1 document:

http://docs.releasenotes.salesforce.com/en-US/pages/release-notes/rn_vf_sforce_one_versioning.htm