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
SFDC93 SfSFDC93 Sf 

How to convert below java script button for Lightning use?

Please can some one help me to convert this URl type javascript button to lighting??
This is available in related list. 

/a1c/e?DFXXXXXXXXX={!REGULAR_HOURS__c.Name}&DFXXXXXXXXX_lkid={!REGULAR_HOURS__c.Id}&saveURL=%2F{!REGULAR_HOURS__c.Id}&retURL=%2F{!REGULAR_HOURS__c.Id}

Thank you
Raj VakatiRaj Vakati
You need to use the Quick actction .. Use Lightning Experience Configuration Converter that will generate the code for you 

https://developer.salesforce.com/blogs/2018/06/convert-javascript-buttons-to-lightning-friendly-alternatives-with-the-lightning-experience-configuration-converter.html

https://lightning-configuration.salesforce.com/