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

                            Zoho Desk Resources

                            • Desk Community Learning Series

                            • Digest

                            • Functions

                            • Meetups

                            • Kbase

                            • Resources

                            • Glossary

                            • Desk Marketplace

                            • MVP Corner

                            • Word of the Day

                                Zoho Marketing Automation

                                        Manage your brands on social media

                                                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 WorkDrive Resources

                                                                    Zoho Campaigns Resources

                                                                      Zoho CRM Resources

                                                                      • CRM Community Learning Series

                                                                        CRM Community Learning Series

                                                                      • Tips


                                                                      • Functions


                                                                      • Meetups


                                                                      • Kbase


                                                                      • Resources


                                                                      • Digest


                                                                      • CRM Marketplace

                                                                        CRM Marketplace

                                                                      • MVP Corner

                                                                        MVP Corner



                                                                          Design. Discuss. Deliver.

                                                                          Create visually engaging stories with Zoho Show.

                                                                          Get Started Now