Make certain subform entries read only
Hi all
I need to make specific entries on a subform to be read only for portal users.
Ive added a field to my subform called 'read only' which is a picklist with the values of Yes and No. Ive set this field to be hidden as its only to be used in the function which make that specific entry to be read only. (I presume this is whats needed).
The function should fire when a new record is created in the parent module.
What would be the deluge script for this function please?
My current code is:
- recordDetails = zoho.crm.getRecordById("My_Module", My_Module_ID);
- subformEntries = recordDetails.get("My_Subform");
- for each entry in subformEntries
- {
- rowMakeReadOnly = entry.get("Make read only");
- if(rowMakeReadOnly == "Yes")
- {
- // make this row of fields read only
- }
- }
Thanks
Zoho Desk Resources
-
Desk Community Learning Series
-
-
-
-
-
-
-
-
-
Zoho CRM Plus Resources
Zoho Books Resources
Zoho Subscriptions Resources
Zoho Projects Resources
Zoho Sprints Resources
Zoho Orchestly Resources
Zoho Creator Resources
Zoho WorkDrive Resources
Zoho Campaigns Resources
Zoho CRM Resources
Writer Get Started. Write Away!
Writer is a powerful online word processor, designed for collaborative work.