function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
pankul guptapankul gupta 

Custom Button Not Working in Lightning

We have a custom button in Salesforce Classic and it is redirecting to a custom VF Page. The button is a formula field and the expression is as below:
IF (Pricebook_Locked__c, HYPERLINK("apex/Apttus__OpportunityAgreement?id=" &Id, IMAGE("/resource/Create_Agreement", "Create Agreement"), "_self"), NULL)

But the same button is not working in lightning and we are getting the error as "URL no Longer Exists"

Is there any specific change we have to change to make it work in Lightning?
Any inputs on the same would be appreciated?

Thanks.
Maharajan CMaharajan C
Hi Pankul,

Change the double quotes to single quotes :

https://salesforce.stackexchange.com/questions/208072/custom-formula-field-in-record-detail-page-to-launch-vf-page-is-not-working-in-l/208596

Can you please Let me know if it helps or not!!!

If it helps don't forget to mark this as a best answer!!!



Thanks,
Raj