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
Dilyan DimitrovDilyan Dimitrov 

Update custom field via visualforce by using controller and save the record.

Hi,

What I would like to do is to update custom Status__c field via visualforce button by using controller and save the record the Lead database table. Could you please advise how this ca be achieved? Could you please add an example code.

I've tried to update the field via trigger but it turned out to be difficult.

Therefore I strive to find a way to update the field via controller.

Please advise how this can be achieved.

Regards,

Dilyan