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