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
Vaibhav ShettiVaibhav Shetti 

Using sforce.one.back() with sforce.one.createRecord()

I am using sforce.one.createRecord('Custom_Object__c') to create record of Custom_Object__c. When the record is created, I want to go back to the same page which launced Custom_Object__c record creation window. Using sforce.one.back()  like - 

sforce.one.createRecord('Custom_Object__c');
sforce.one.back();

closes the Custom_Object__c record creation window and takes back to previous page without allowing me to create record. How do I handle this? Am I missing something here?
Raj VakatiRaj Vakati
use window history DOM object from the javascript