I used sforce.one.createRecord in VF page for Lightning experience. Now I want that on the click of Save button, the record should be saved and popup should close (the parent window should not be redirected to any other page). Currently, it is being redirected to the newly created record.

Is this possible in any way?


No, this seems currently not possible, since it is not officially stated in the documentation:



Per default it routes to the newly generated object, which is often NOT what we need. We can only hope, that Salesforce recognizes the severe necessity for us to get control on where the users end up after the insert. For many use cases I need to create child records and navigate to the parent. Not possible now :-(

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.