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
dev.shiv1.3478599680068948E12dev.shiv1.3478599680068948E12 

If I delete any records from the related list it should not delete records from the object

Hi,

I have a parent object and a child. If I delete a record from the related list, those should delete from the related list only not from the child object... Please any Ideas or solutions could be helpful and appreciated.....

Thanks.

-Shiva

SurekaSureka
Hi,

Override the Delete button/link. With the appropriate code, once the user deletes the record, just remove the parent field reference. So the child record will still remain in the object.

Thanks

dev.shiv1.3478599680068948E12dev.shiv1.3478599680068948E12

I need to write the logic for the delete button which is in related list. If I override the delete button, does it effects only on parent detail page or even in related list also.....? 

SurekaSureka
It affects in the related also. It affects everywhere.