How can I allow a user to delete only his own records?

How can I allow a user to delete only his own records?

Zoho Creator updates each record submission with the name of the login user who added the record and the time when it was added. Refer the Help topic Display User Name and Time, for more information. The following code added to the on delete -> validate block of the Sript tab, will be executed when a record is deleted. If the added user name is not the same as the login username, the record will not be deleted. 

on  delete
{
on validate
{
if (input.Added_User != zoho.loginuser)
{
alert "You can delete only your records";
cancel delete;
}
}
}
    • Related Articles

    • When I delete a user, what happens to the records owned by the user?

      The records owned by a user you have deleted remain in Zoho CRM even after you delete them. You can transfer their records at any time. But we strongly recommend that you mass transfer the records to a new owner before you delete them. See also: How ...
    • How can I allow a user to modify only his own records?

      Zoho Creator updates each record submission with the name of the login user who added the record and the time when it was added. The following code added to the on edit -> validate block of the Script tab will be executed when a record is edited. If ...
    • Sharing Records

      Collaboration is essential in a sales team. How we interact with the other members of the team, how we share information and ideas with them and the most important of all is how we share sales data that we work with. Zoho CRM provides different ...
    • Associating Records

      To attach documents This feature allows you to attach documents, spreadsheets and presentations to candidates. You can attach them in the following ways: Attach from Desktop  Attach from Zoho Docs  Attach from Google Docs  Associate Candidates To ...
    • Associate Records

      Attach Documents To attach documents This feature allows you to attach documents, spreadsheets and presentations to Temps or Clients. You can attach them in the following ways: Attach from Desktop Attach from Zoho Docs Attach from Google Docs Assign ...