1

I have a text formula field on custom object which when clicked have to launch a visualforce page. I want to make it working for both Salesforce classic and Lightning Experience. Now it is working only in Salesforce classic mode.

Here is the formula field definition,

HYPERLINK("/apex/MyVFPage?recid="+Id+"&parentRecId="+ParentId+"&parentRecName="+parentname,"Click Link") 

Any help...

3
  • Try this HYPERLINK('/apex/MyVFPage?recid='+Id+'&parentRecId='+ParentId+'&parentRecName='+parentname, 'Click Link', '_self') Feb 14, 2018 at 6:53
  • I'm able to resolve this issue by applying the above syntax.
    – Karthik
    Feb 17, 2018 at 5:48
  • Then you can accept my answer and close this question. Feb 18, 2018 at 13:16

1 Answer 1

0

You can try below syntax. As we need single quote instead of double quotes.

HYPERLINK('/apex/MyVFPage?recid='+Id+'&parentRecId='+ParentId+'&parentRecName='+parentname, 'Click Link', '_self')

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .