You need to sign in to do that
Don't have an account?

Need to create a custom button in lightning which is in classic "Onclick javascript".
Hi, I am trying to create a custom button on cases to click if they want to accept the case. Which would change status of the case from new to open.This button already exists in classic in java script. Now need to create in Lightning. Please do help me.
The Lightning Experience doesn't support Onclick JavaScript buttons. These custom buttons are easy to spin up and extremely handy to conditionally redirect users to new pages. I've made use of them in Salesforce Classic for several years now and was disappointed to hear that they are not supported by Lightning.
I would suggest you, please . upvote for the below idea which is active on the success community so that it will be available in the mere future.
- https://success.salesforce.com/ideaView?id=08730000000cGX8AAM
Also, see the below trailhead which might help.- https://trailhead.salesforce.com/en/modules/lex_javascript_button_migration
Hope this helps.Kindly mark this as solved if my reply was helpful.
Thanks,
Nagendra
The Lightning Experience doesn't support onclick JavaScript buttons. you can Upvote for the idea.
https://success.salesforce.com/ideaView?id=08730000000cGX8AAM
OR
You can give a try :https://developer.salesforce.com/blogs/developer-relations/2016/09/take-the-first-steps-ways-you-can-replace-javascript-buttons.html
http://www.bayforce.com/2017/05/converting-javascript-button-for-lightning-experience-part-1/
Hope It Helps..!
Mark my solution as the best answer if it helps you
Thanks
Vinod