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
PappuPappu 

How to change the owner name for selected records

Hi All,

I have created a VF page for a custom sobject records with checkbox field.

Also, I do have a button (Change Owner) at top of the page, where user clicks the button, they should able to change the owner name for selected record(s).

If a user selects directly the button without select any check box field, a pop up should appear stating "Please select atleast one record".

Kindly suggest me  a code or where I can get the reference for this requirement.

Thanks!!!