You need to sign in to do that
Don't have an account?
Manuel Echeverria
sforce.one.navigateToRelatedList Is not working
I am new in salesforce and I'm trying to make a call from a visualforce page inside salesforce1 (now called lightning, I think) to a Related List of contacts. My page show some options related to the Account object and one of this options is to show its Contacts (that's what I want but this code is not working):
I just want to show this: Is the same that you can see in Salesforce Lightning under Accounts/Related/Contacts
And then...
<apex:outputPanel > <a href="sforce.one.navigateToRelatedList('Contacts', '{!idAccount}');"> <input type="button" value="Contacts" class="register-button"/> </a> </apex:outputPanel>
I just want to show this: Is the same that you can see in Salesforce Lightning under Accounts/Related/Contacts
And then...
tells the browser to create a link to the page 'sforce.one...' etc. This is a JavaScript function, so you need to tell the anchor tag to treat the HREF as JavaScript rather than a URL. E.g.
All Answers
tells the browser to create a link to the page 'sforce.one...' etc. This is a JavaScript function, so you need to tell the anchor tag to treat the HREF as JavaScript rather than a URL. E.g.