2

I have 1 publisher action on account object that open a VisualForce Page, content of visualforce page is.

<a href="javascript:sforce.one.navigateToSObject('{! account.Id}','detail');"> hyperlink </a>

navigate to account detail page.

its working only once,but not second time I don't know why. please help with solution.

5
  • Have you tried executing this from the desktop (using the /one/one.app URL) to see if there are any JavaScript errors? May 12 '14 at 7:22
  • yes i tested using one/one.app,it not giving any javacript error at console
    – nazmul19
    May 12 '14 at 7:32
  • hi @BobBuzzard have you run this code at your side?
    – nazmul19
    May 12 '14 at 12:41
  • Yes, I use this in a number of places without any problems. May 12 '14 at 14:04
  • @user3559241 did you find a solution for this?
    – erikduvet
    Dec 10 '15 at 12:06
1

Use navigateToURL(objectId) method. example:

<a href='javascript:sforce.one.navigateToURL(<<objectId>>);'> hyperlink </a>

Note:<> is placeholder for recordId within quote.

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.