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

Why did C use the -> operator instead of reusing the . operator?

Why do distances seem to matter in the Foundation world?

A strange hotel

How important is it that $TERM is correct?

Which big number is bigger?

Can a stored procedure reference the database in which it is stored?

What does a straight horizontal line above a few notes, after a changed tempo mean?

Was Dennis Ritchie being too modest in this quote about C and Pascal?

Magical attacks and overcoming damage resistance

Will I lose my paid in full property

"Whatever a Russian does, they end up making the Kalashnikov gun"? Are there any similar proverbs in English?

Work requires me to come in early to start computer but wont let me clock in to get paid for it

Is Electric Central Heating worth it if using Solar Panels?

Injection into a proper class and choice without regularity

Nails holding drywall

Can a Bard use the Spell Glyph option of the Glyph of Warding spell and cast a known spell into the glyph?

As an international instructor, should I openly talk about my accent?

Who's the random kid standing in the gathering at the end?

Combinatorics problem, right solution?

"The cow" OR "a cow" OR "cows" in this context

What makes accurate emulation of old systems a difficult task?

Do I need to watch Ant-Man and the Wasp and Captain Marvel before watching Avengers: Endgame?

What does "function" actually mean in music?

How to pronounce 'c++' in Spanish



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;








2















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.










share|improve this question




























    2















    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.










    share|improve this question
























      2












      2








      2








      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.










      share|improve this question














      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






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked 7 hours ago









      Ian HornerIan Horner

      655




      655




















          2 Answers
          2






          active

          oldest

          votes


















          2














          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 case Account 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.






          share|improve this answer
































            2














            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
            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
            Room Lookup Filter that ensures this room is in the same house that is specified on the account






            share|improve this answer










            New contributor




            Ayoola Olapo is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
            Check out our Code of Conduct.




















              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
              );



              );













              draft saved

              draft discarded


















              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









              2














              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 case Account 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.






              share|improve this answer





























                2














                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 case Account 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.






                share|improve this answer



























                  2












                  2








                  2







                  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 case Account 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.






                  share|improve this answer















                  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 case Account 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.







                  share|improve this answer














                  share|improve this answer



                  share|improve this answer








                  edited 6 hours ago

























                  answered 7 hours ago









                  Jayant DasJayant Das

                  19.4k21331




                  19.4k21331























                      2














                      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
                      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
                      Room Lookup Filter that ensures this room is in the same house that is specified on the account






                      share|improve this answer










                      New contributor




                      Ayoola Olapo is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                      Check out our Code of Conduct.
























                        2














                        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
                        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
                        Room Lookup Filter that ensures this room is in the same house that is specified on the account






                        share|improve this answer










                        New contributor




                        Ayoola Olapo is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                        Check out our Code of Conduct.






















                          2












                          2








                          2







                          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
                          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
                          Room Lookup Filter that ensures this room is in the same house that is specified on the account






                          share|improve this answer










                          New contributor




                          Ayoola Olapo is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                          Check out our Code of Conduct.










                          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
                          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
                          Room Lookup Filter that ensures this room is in the same house that is specified on the account







                          share|improve this answer










                          New contributor




                          Ayoola Olapo is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                          Check out our Code of Conduct.









                          share|improve this answer



                          share|improve this answer








                          edited 6 hours ago





















                          New contributor




                          Ayoola Olapo is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                          Check out our Code of Conduct.









                          answered 6 hours ago









                          Ayoola OlapoAyoola Olapo

                          386




                          386




                          New contributor




                          Ayoola Olapo is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                          Check out our Code of Conduct.





                          New contributor





                          Ayoola Olapo is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                          Check out our Code of Conduct.






                          Ayoola Olapo is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                          Check out our Code of Conduct.



























                              draft saved

                              draft discarded
















































                              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.




                              draft saved


                              draft discarded














                              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





















































                              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







                              Popular posts from this blog

                              Magento 2 - Add success message with knockout Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern) Announcing the arrival of Valued Associate #679: Cesar Manara Unicorn Meta Zoo #1: Why another podcast?Success / Error message on ajax request$.widget is not a function when loading a homepage after add custom jQuery on custom themeHow can bind jQuery to current document in Magento 2 When template load by ajaxRedirect page using plugin in Magento 2Magento 2 - Update quantity and totals of cart page without page reload?Magento 2: Quote data not loaded on knockout checkoutMagento 2 : I need to change add to cart success message after adding product into cart through pluginMagento 2.2.5 How to add additional products to cart from new checkout step?Magento 2 Add error/success message with knockoutCan't validate Post Code on checkout page

                              Fil:Tokke komm.svg

                              Where did Arya get these scars? Unicorn Meta Zoo #1: Why another podcast? Announcing the arrival of Valued Associate #679: Cesar Manara Favourite questions and answers from the 1st quarter of 2019Why did Arya refuse to end it?Has the pronunciation of Arya Stark's name changed?Has Arya forgiven people?Why did Arya Stark lose her vision?Why can Arya still use the faces?Has the Narrow Sea become narrower?Does Arya Stark know how to make poisons outside of the House of Black and White?Why did Nymeria leave Arya?Why did Arya not kill the Lannister soldiers she encountered in the Riverlands?What is the current canonical age of Sansa, Bran and Arya Stark?