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
Christwin DuraiChristwin Durai 

Custom Object on a button Click from a VF page in Salesforce1

Hi All,

I have used the below code to open a new Record which works in Apple Phones but not in Android Phones.Could some one please guide me how to get it done.
In Android phones it shows a message like Logged out of session Successfully.
<a href="{!URLFOR($Action.CustomObjectAPI.New)}">Register</a>


I also used the blow code but it shows an error like "Cannot read property 'createRecord' of undefined". Kindly also Advice in this
function createNew() {
try{
      sforce.one.createRecord("CustomObject",null);
      }
      catch(e){alert(e);}
}

Thanks and Regards,
Christwin