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
Liz MalmanLiz Malman 

Reference a field of an Object's related Object

Hi all,

So in my org, we have an events object and a team object. The team object is related to the events object. In a visualforce page that create an events calender displaying all of our events, we have a few filters at the top for sport and other various fields. What I would like to do is create a filter that uses a field from the team object to filter the event. 

My code looks like this when I reference an event field:
&& ['all', myEvent.type].indexOf($('#type_selector').val()) >= 0 

Is there a way for me to grab or reference a field from the team object?

Any help would be appreciated!
Liz