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
Katrina_HarshKatrina_Harsh 

How to convert a custom button using Lavascript.

I have a custom button in Leads that is not allowing reps to use it effectively on their mobile apps.  Is there are way to take the code in the Lavascript, and convert it to a visualforce so it can be used in the same function online as well as on their mobile apps?

I have done quite a bit of research, but when I try to create the Apex controller and visualforce page I cannot seem to link the same values. 

Thanks,
 

Katrina

AshlekhAshlekh
Hi,

You can just redirect to user to new page with the record id and then in your custom page controller, just get the id and fetch all the value related to those reocrd and show on Custom UI and perform what you want.

-Thanks
Ashlekh Gera