web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Answered

Cascading (dependent) drop down list

(0) ShareShare
ReportReport
Posted on by 3,326

Hi All

Is it possible to create a dependent drop-down list (Enum or OPTION) so, for example, you have a group and sub-group where sub-group values are filtered based on the group. For example, select a country  from country drop down field and you see states within that country selected on the state field available values

Thanks

I have the same question (0)
  • Suggested answer
    IB-29041624-0 Profile Picture
    1,191 Moderator on at

    Yes it is possible.

    You can look at how it is done f.ex with the post code on the customer and vendor table.

    There the lookup of post codes are dependent on the country you have selected.

    You also have the same method when it comes to city (field 7 in the customer table.

      field(91; "Post Code"; Code[20])
            {
                Caption = 'Post Code';
                TableRelation = IF ("Country/Region Code" = CONST('')) "Post Code"
                ELSE
                IF ("Country/Region Code" = FILTER(<> '')) "Post Code" WHERE("Country/Region Code" = FIELD("Country/Region Code"));
                //This property is currently not supported
                //TestTableRelation = false;
                ValidateTableRelation = false;
    
                trigger OnLookup()
                begin
                    OnBeforeLookupPostCode(Rec, PostCode);
    
                    PostCode.LookupPostCode(City, "Post Code", County, "Country/Region Code");
    
                    OnAfterLookupPostCode(Rec, PostCode);
                end;
    
                trigger OnValidate()
                begin
                    OnBeforeValidatePostCode(Rec, PostCode);
    
                    PostCode.ValidatePostCode(City, "Post Code", County, "Country/Region Code", (CurrFieldNo <> 0) and GuiAllowed);
    
                    OnAfterValidatePostCode(Rec, xRec);
                end;
            }

    Really powerful function.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 1,713 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 1,032 Super User 2026 Season 1

#3
Grigorios Mavrogeorgis Profile Picture

Grigorios Mavrogeorgis 914 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Microsoft Training Manuals

Product updates

Dynamics 365 release plans