function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
InsideLeafsInsideLeafs 

Question about lookup field

Hi everyone, 

 

I'm trying to do this exercise from Force.com fundamental ebook.

 

Did you know you can make the valid values of a lookup field depend on the value of another field on the record?

Say you want to ensure that hiring managers only create positions for locations with open headcount. You could create a dependent lookup by creating a "Locations with Open Headcount" lookup field and relating it to the "All location" field. Then, you would relate the "Locations" field to the "Locations with Open Headcount" field. So when the "Locations with Open Headcount" field's values are “San Francisco, CA” and “Sydney, Australia,” the user can only select those values in the "Locations" lookup field.

 

I know this is about using the dependent lookups with a lookup filter. However, can anyone able to teach me how to make this one works?

 

Thanks a lot.

IspitaIspita

Hi,

You are correct these are handled using lookup filter . Now coming to the question ofhow to implement it:-