You need to sign in to do that
Don't have an account?
GGJ2
How to refresh Salesforce1 detail view using Visualforce
How can I refresh a Lead Detail page when running in Salesforce 1 ?
if( (typeof sforce != 'undefined') && (sforce != null) )
{
// Running in Salesforce 1
How do I refresh the page when running in Salesforce 1 ?
}
else
{
// Not running in Salesforce 1
var currentURL = "https://{!URLForPage}/{!Lead.Id}";
top.location.href = currentURL;
}
if( (typeof sforce != 'undefined') && (sforce != null) )
{
// Running in Salesforce 1
How do I refresh the page when running in Salesforce 1 ?
}
else
{
// Not running in Salesforce 1
var currentURL = "https://{!URLForPage}/{!Lead.Id}";
top.location.href = currentURL;
}
if( (typeof sforce != 'undefined') && (sforce != null) )
{
// Running in Salesforce
var myid = {!Lead.Id};
sforce.one.navigateToSObject(myid);
}
else
{
// Not running in Salesforce 1
var currentURL = "https://{!URLForPage}/{!Lead.Id}";
top.location.href = currentURL;
}
If my answer helps resolve your query, please mark it as the 'Best Answer' & upvote it to benefit others and improve the overall quality of Discussion Forums.
Shawn
Mobile Nav documentation: http://www.salesforce.com/us/developer/docs/salesforce1/Content/salesforce1_dev_jsapi_sforce_one.htm