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
Surya.236Surya.236 

Button functionality working in VF not in Lightning. as JS buttons dosent work in Lightning what is alternate to make it work in both VF and Lightning.

Hi , i have a in line vf button which in that -----oncomplete="window.top.location = '/{!Case.id}' "---- this oncomplete funtionalityworking in VF properly but not in Lightning?? i need make that command button to work in both vf and lightning.
SandhyaSandhya (Salesforce Developers) 
Hi,

I would suggest you go through the below trailhead challenge for the same.

https://trailhead.salesforce.com/modules/lex_javascript_button_migration
 
Please mark it as solved if my reply was helpful. It will make it available for other as the proper solution.
                                             
Best Regards
Sandhya