+ 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!!!