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
Access your files securely from anywhere
Zoho Developer Community
Deliver unforgettable customer experiences
Deliver unforgettable customer experiences
New to Zoho Marketing Plus?
Everything you need to run your marketing
New to Zoho Marketing Plus?
Everything you need to run your marketing
Zoho Desk Resources
-
Desk Community Learning Series
-
-
-
-
-
-
-
-
-
Zoho TeamInbox Resources
Zoho DataPrep Resources
Zoho CRM Plus Resources
Zoho Books Resources
Zoho Subscriptions Resources
Zoho Projects Resources
Zoho Sprints Resources
Qntrl Resources
Zoho Creator Resources
Zoho Campaigns Resources
Zoho CRM Resources
Zoho Show Resources
Writer Get Started. Write Away!
Writer is a powerful online word processor, designed for collaborative work.