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
Amr MohsenAmr Mohsen 

Filtering lookup field based on another one

Hello,
I've a schema called ESCALATION  which has fields [Type, Subtype, EscalationTime] and acts as Many To many relationship between TYPE schema ans SUBTYPE schema, I created custom lookup field which contains all TYPE data in Cases page . I want to create another lookup field that displays SUBTYPE based on relationship.

If I represent it in SQL statement it will be : "SELECT SubType FROM ESCALATION  WHERE Type = ' Types lookup field value'" 
Mahesh DMahesh D
Hi Amr,

Is it possible to explain more about requirement and the actual objects relationship.

Regards,
Mahesh
Amr MohsenAmr Mohsen
I need to create two lookup fields one for Main Types and another one for sub types, and filter subtypes based on types based on many to many relationship table.. for ex : When I choose 'A' From Main lookup , S1, S2 from subtype lookup apear only.

User-added image