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:-
- //...........Criteria..........
- var object2 = ZDK.Page.getField('Sharing_Option').getValue();
- var object3 = ZDK.Page.getField('Campus').getValue();
- var object1 = ZDK.Page.getField('Room');
- object1.setCriteria("(Room_Status:equals:Empty)and
- (Campus:equals:"+object3+")and(Shearing_Option:equals:"+object2+")",
- { 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
-
-
-
-
-
-
-
-
-
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.