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
SUMAN KUMARI 70SUMAN KUMARI 70 

How to convert a javascript button in lightning?

I have a button in lightning with an onClick Javascript - window.open('/apex/VIPFORM__VIP_FormWizard?id={!Document_Review_Feedback_Form__c.Id}', '_blank');

I want to convert this button in lightning. Please do suggest me a way to do it. Thanks in advance.
ANUTEJANUTEJ (Salesforce Developers) 
Hi Suman,

Is it the look and feel you want to customize or is it the internal javascript on the button you would like to modify?

Regards,
Anutej
SUMAN KUMARI 70SUMAN KUMARI 70
It is a java script button in classic. I want it to convert it in lightning. 
ANUTEJANUTEJ (Salesforce Developers) 
Okay, so was it working when you use it in lightning context?
SUMAN KUMARI 70SUMAN KUMARI 70
Nope... This button is working in classic, but in lightning I am not able to see this button.
SUMAN KUMARI 70SUMAN KUMARI 70
VIPForm is a managed package used here.
ANUTEJANUTEJ (Salesforce Developers) 
So I found this link that seems to have a similar issue, can you try checking.

>> https://success.salesforce.com/answers?id=9063A000000pMELQA2
 
SUMAN KUMARI 70SUMAN KUMARI 70
I have tried these.. but nothing seems to work
 
ANUTEJANUTEJ (Salesforce Developers) 
Can we try creating a new button with same JS code, in the lightning context and see if it works?
 
SUMAN KUMARI 70SUMAN KUMARI 70
Tried it... Still not working
ANUTEJANUTEJ (Salesforce Developers) 
Sorry for the delayed response however I found the below documentation link can you check this once:

>> https://help.salesforce.com/articleView?id=lcc_javascript_buttons_overview.htm&type=5