cascading option in sharepoint list

sns 9,231 Reputation points
2020-08-19T07:06:36.223+00:00

is it possible to get cascading feature for 2016 SharePoint list?
if yes how it is possible?

SharePoint Server Management
SharePoint Server Management
SharePoint Server: A family of Microsoft on-premises document management and storage systems.Management: The act or process of organizing, handling, directing or controlling something.
2,893 questions
0 comments No comments
{count} votes

Accepted answer
  1. Echo Du_MSFT 17,141 Reputation points
    2020-08-20T10:27:29.99+00:00

    You could use lookup column and custom codes to achieve this. You could refer to this article Cascading of Lookup Dropdown Fields on SharePoint 2013 and Office 365

    Follow these steps:

    1.Create a SharePoint List named Company.
    19122-1.png

    2.Create a SharePoint List named Employee, then create a Lookup column named as Company from the Company List
    19105-2.png
    19099-3.png

    3.Create a third List as Database, then create two Lookup columns. The first column is Company from the Company List, the second is Employee from the Employee List.
    19029-4.png

    4.Go to the Database List >> click Default New Form in the List tab
    19100-5.png

    5.Click Add a Web Part >> add Script Editor in the “Media and Content” folder
    19181-6.png

    6.Click EDIT SNIPPET >> enter the following script command (19088-script.txt)>> click Insert button >> click Stop Editing in the PAGE tab
    19076-7.png

    7.In the Database List, when you adding a new item, if you select the Company value, then the Employee value will auto binding.
    18888-8.png


    If the response is helpful, please click "Accept Answer" and upvote it.
    @sns

    0 comments No comments

3 additional answers

Sort by: Most helpful
  1. sns 9,231 Reputation points
    2020-08-20T15:47:08.203+00:00

    Hi Echo Du,

    Thank you for the support.
    I tried all the above steps as it is. I faced below error at the end. I am not sure, may be do I need to change the code you have shared, Please suggest what to do?
    19213-error1.png
    19214-error2.png

    0 comments No comments

  2. Echo Du_MSFT 17,141 Reputation points
    2020-08-21T05:42:57.5+00:00

    You don’t need to change the code. In your list, the “company” field name is lowercase, just change it to uppercase “Company”. Check if it works for you.

    19357-1.png

    ----------

    @sns
    You can directly click “Comment” option under ”My Answered“ to put forward your opinions and thoughts about solution that I propose.

    If the response is helpful, please click "Accept Answer" and upvote it.

    0 comments No comments

  3. sns 9,231 Reputation points
    2020-08-21T06:15:00.693+00:00

    Hi Echo Du,

    Thank you . It worked

    0 comments No comments