Make certain subform entries read only

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:

  1. recordDetails = zoho.crm.getRecordById("My_Module", My_Module_ID);
  2. subformEntries = recordDetails.get("My_Subform");
  3. for each  entry in subformEntries
  4. {
  5. rowMakeReadOnly = entry.get("Make read only");
  6. if(rowMakeReadOnly == "Yes")
  7. {
  8. // make this row of fields read only
  9. }
  10. }

Thanks







    Zoho Desk Resources

    • Desk Community Learning Series


    • Digest


    • Functions


    • Meetups


    • Kbase


    • Resources


    • Glossary


    • Desk Marketplace


    • MVP Corner


    • Word of the Day


      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

                        • CRM Community Learning Series

                          CRM Community Learning Series


                        • Tips

                          Tips

                        • Functions

                          Functions

                        • Meetups

                          Meetups

                        • Kbase

                          Kbase

                        • Resources

                          Resources

                        • Digest

                          Digest

                        • CRM Marketplace

                          CRM Marketplace

                        • MVP Corner

                          MVP Corner




                          Zoho Writer Writer

                          Get Started. Write Away!

                          Writer is a powerful online word processor, designed for collaborative work.

                            Zoho CRM コンテンツ




                              ご検討中の方