Restricting the options of a lookup field, based on the value of another lookup field?Do cross object formulas only work if the lookup field is on the same object as the formula field?Auto populate fields based on lookup field valueCustomize result of of lookup field searchCreating Lookup Filter - Insert Field not showing fieldThe lookup field is not displaying on VF pageCan I enter non existing values on a lookup field?Default a Value for a checkbox field in the Account lookup filter fieldsSalesforce Lookup field filtering by record typeHow to deal with records invalidated due to adding filter criteria on lookup field?User can't change prepopulate lookup field
What is purpose of DB Browser(dbbrowser.aspx) under admin tool?
As an international instructor, should I openly talk about my accent?
Prove that the countable union of countable sets is also countable
Why doesn't the standard consider a template constructor as a copy constructor?
UK Visa refusal and ban for 10 years ( false Documents) . Can I apply for Australia
How bug prioritization works in agile projects vs non agile
Which big number is bigger?
Is Electric Central Heating worth it if using Solar Panels?
Is there metaphorical meaning of "aus der Haft entlassen"?
English or Hindi translation of Vyasa Smriti
Co-worker works way more than he should
What was Apollo 13's "Little Jolt" after MECO?
Could moose/elk survive in the Amazon forest?
Older movie/show about humans on derelict alien warship which refuels by passing through a star
Philosophical question on logistic regression: why isn't the optimal threshold value trained?
Is there really no use for MD5 anymore?
How do I reattach a shelf to the wall when it ripped out of the wall?
What does a straight horizontal line above a few notes, after a changed tempo mean?
Help with my training data
"Whatever a Russian does, they end up making the Kalashnikov gun"? Are there any similar proverbs in English?
Bayes factor vs P value
How much cash can I safely carry into the USA and avoid civil forfeiture?
Multiple options vs single option UI
What is the most expensive material in the world that could be used to create Pun-Pun's lute?
Restricting the options of a lookup field, based on the value of another lookup field?
Do cross object formulas only work if the lookup field is on the same object as the formula field?Auto populate fields based on lookup field valueCustomize result of of lookup field searchCreating Lookup Filter - Insert Field not showing fieldThe lookup field is not displaying on VF pageCan I enter non existing values on a lookup field?Default a Value for a checkbox field in the Account lookup filter fieldsSalesforce Lookup field filtering by record typeHow to deal with records invalidated due to adding filter criteria on lookup field?User can't change prepopulate lookup field
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
Let's say I have three custom objects: Neighborhood, House, and Room. On the Account object, I have lookup fields for these objects.
My goal: When the user selects a Neighborhood, I want ONLY the houses contained within that neighborhood to be available for selection in the House field. After a house is selected, I want ONLY the rooms contained within that house to be available for selection in the Room field. Is there any way to do this?
I have already learned that there are ways to do this in a custom Lightning page. However, I'm looking for a way to do this with custom fields on a regular Salesforce object, like Account.
lookup
add a comment |
Let's say I have three custom objects: Neighborhood, House, and Room. On the Account object, I have lookup fields for these objects.
My goal: When the user selects a Neighborhood, I want ONLY the houses contained within that neighborhood to be available for selection in the House field. After a house is selected, I want ONLY the rooms contained within that house to be available for selection in the Room field. Is there any way to do this?
I have already learned that there are ways to do this in a custom Lightning page. However, I'm looking for a way to do this with custom fields on a regular Salesforce object, like Account.
lookup
add a comment |
Let's say I have three custom objects: Neighborhood, House, and Room. On the Account object, I have lookup fields for these objects.
My goal: When the user selects a Neighborhood, I want ONLY the houses contained within that neighborhood to be available for selection in the House field. After a house is selected, I want ONLY the rooms contained within that house to be available for selection in the Room field. Is there any way to do this?
I have already learned that there are ways to do this in a custom Lightning page. However, I'm looking for a way to do this with custom fields on a regular Salesforce object, like Account.
lookup
Let's say I have three custom objects: Neighborhood, House, and Room. On the Account object, I have lookup fields for these objects.
My goal: When the user selects a Neighborhood, I want ONLY the houses contained within that neighborhood to be available for selection in the House field. After a house is selected, I want ONLY the rooms contained within that house to be available for selection in the Room field. Is there any way to do this?
I have already learned that there are ways to do this in a custom Lightning page. However, I'm looking for a way to do this with custom fields on a regular Salesforce object, like Account.
lookup
lookup
asked 1 hour ago
Ian HornerIan Horner
655
655
add a comment |
add a comment |
2 Answers
2
active
oldest
votes
Disclaimer: I haven't tried it out myself, but going through the docs, it seems like you can utilize Dependent Lookups here.
A dependent lookup is a relationship field with a lookup filter that references fields on the source object. For example, you can configure the case
Contact
field to only show contacts associated with the account selected in the caseAccount Name
field.
You will need to utilize Inserted Suggested Criteria
when defining Lookup Filters to be able to utilize this.
When you define a lookup filter, optionally click
Insert Suggested Criteria
to choose from a list of lookup filter criteria that Salesforce suggests based on the relationships between objects in your org.
So in your case you will have a filter on your Household
lookup to filter results based on the Neighborhood
field and similarly a filter on your Room
field to filter results based on the Household
field.
add a comment |
Your House object should have a lookup to a Neighborhood. Your Room object should have a lookup to a House.
Then on the Account you can add filters to your House and Room lookup fields as follows:
House Lookup Filter that ensures that this house is in the same neighborhood that is specified on the account record
Room Lookup Filter that ensures this room is in the same house that is specified on the account
New contributor
add a comment |
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "459"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsalesforce.stackexchange.com%2fquestions%2f260139%2frestricting-the-options-of-a-lookup-field-based-on-the-value-of-another-lookup%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
Disclaimer: I haven't tried it out myself, but going through the docs, it seems like you can utilize Dependent Lookups here.
A dependent lookup is a relationship field with a lookup filter that references fields on the source object. For example, you can configure the case
Contact
field to only show contacts associated with the account selected in the caseAccount Name
field.
You will need to utilize Inserted Suggested Criteria
when defining Lookup Filters to be able to utilize this.
When you define a lookup filter, optionally click
Insert Suggested Criteria
to choose from a list of lookup filter criteria that Salesforce suggests based on the relationships between objects in your org.
So in your case you will have a filter on your Household
lookup to filter results based on the Neighborhood
field and similarly a filter on your Room
field to filter results based on the Household
field.
add a comment |
Disclaimer: I haven't tried it out myself, but going through the docs, it seems like you can utilize Dependent Lookups here.
A dependent lookup is a relationship field with a lookup filter that references fields on the source object. For example, you can configure the case
Contact
field to only show contacts associated with the account selected in the caseAccount Name
field.
You will need to utilize Inserted Suggested Criteria
when defining Lookup Filters to be able to utilize this.
When you define a lookup filter, optionally click
Insert Suggested Criteria
to choose from a list of lookup filter criteria that Salesforce suggests based on the relationships between objects in your org.
So in your case you will have a filter on your Household
lookup to filter results based on the Neighborhood
field and similarly a filter on your Room
field to filter results based on the Household
field.
add a comment |
Disclaimer: I haven't tried it out myself, but going through the docs, it seems like you can utilize Dependent Lookups here.
A dependent lookup is a relationship field with a lookup filter that references fields on the source object. For example, you can configure the case
Contact
field to only show contacts associated with the account selected in the caseAccount Name
field.
You will need to utilize Inserted Suggested Criteria
when defining Lookup Filters to be able to utilize this.
When you define a lookup filter, optionally click
Insert Suggested Criteria
to choose from a list of lookup filter criteria that Salesforce suggests based on the relationships between objects in your org.
So in your case you will have a filter on your Household
lookup to filter results based on the Neighborhood
field and similarly a filter on your Room
field to filter results based on the Household
field.
Disclaimer: I haven't tried it out myself, but going through the docs, it seems like you can utilize Dependent Lookups here.
A dependent lookup is a relationship field with a lookup filter that references fields on the source object. For example, you can configure the case
Contact
field to only show contacts associated with the account selected in the caseAccount Name
field.
You will need to utilize Inserted Suggested Criteria
when defining Lookup Filters to be able to utilize this.
When you define a lookup filter, optionally click
Insert Suggested Criteria
to choose from a list of lookup filter criteria that Salesforce suggests based on the relationships between objects in your org.
So in your case you will have a filter on your Household
lookup to filter results based on the Neighborhood
field and similarly a filter on your Room
field to filter results based on the Household
field.
edited 38 mins ago
answered 1 hour ago
Jayant DasJayant Das
19.4k21331
19.4k21331
add a comment |
add a comment |
Your House object should have a lookup to a Neighborhood. Your Room object should have a lookup to a House.
Then on the Account you can add filters to your House and Room lookup fields as follows:
House Lookup Filter that ensures that this house is in the same neighborhood that is specified on the account record
Room Lookup Filter that ensures this room is in the same house that is specified on the account
New contributor
add a comment |
Your House object should have a lookup to a Neighborhood. Your Room object should have a lookup to a House.
Then on the Account you can add filters to your House and Room lookup fields as follows:
House Lookup Filter that ensures that this house is in the same neighborhood that is specified on the account record
Room Lookup Filter that ensures this room is in the same house that is specified on the account
New contributor
add a comment |
Your House object should have a lookup to a Neighborhood. Your Room object should have a lookup to a House.
Then on the Account you can add filters to your House and Room lookup fields as follows:
House Lookup Filter that ensures that this house is in the same neighborhood that is specified on the account record
Room Lookup Filter that ensures this room is in the same house that is specified on the account
New contributor
Your House object should have a lookup to a Neighborhood. Your Room object should have a lookup to a House.
Then on the Account you can add filters to your House and Room lookup fields as follows:
House Lookup Filter that ensures that this house is in the same neighborhood that is specified on the account record
Room Lookup Filter that ensures this room is in the same house that is specified on the account
New contributor
edited 34 mins ago
New contributor
answered 56 mins ago
Ayoola OlapoAyoola Olapo
286
286
New contributor
New contributor
add a comment |
add a comment |
Thanks for contributing an answer to Salesforce Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsalesforce.stackexchange.com%2fquestions%2f260139%2frestricting-the-options-of-a-lookup-field-based-on-the-value-of-another-lookup%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown