Zoho CRM Client Script - SetCriteria in lookup Field

Zoho CRM Client Script - SetCriteria in lookup Field

Hello All

One More Zoho CRM Client Script Tips & Trick.

Now you can Set the Criteria on Your lookup in zoho CRM, It Comes With a Create Page, Edit Page, and Details Page (Standard).

Example:-  We have a Room Module that includes Room Name, Status, Campus, and Sharing Option. Based on these details, students will allocate the room according to the specified criteria.



In the above Snapshot we have to assign the room those status is empty, The Sharing Option will be Double the campus in Goa.

Only lookups that match the given condition will have those values.

Sample Code:-

  1. //...........Criteria..........
  2. var object2 = ZDK.Page.getField('Sharing_Option').getValue();
  3. var object3 = ZDK.Page.getField('Campus').getValue();
  4. var object1 = ZDK.Page.getField('Room');
  5. object1.setCriteria("(Room_Status:equals:Empty)and
  6. (Campus:equals:"+object3+")and(Shearing_Option:equals:"+object2+")"
  7. { filterOnSearch: true });
Hope this Document will help you.

Thanks & Regards
Piyush Goyal
Zoho Developer || Zoho CRM and Creator Certified
+91-8619164837 

    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 コンテンツ




                              ご検討中の方