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

How to modify added fields in table extension when choosing city in customer card

(0) ShareShare
ReportReport
Posted on by 60

Greetings expert,
I am looking for a way to modify fields that i added in an extension when I change the city in the customer card.

My code is working when using onaftervalidate, but only when the user types the city but does not work when the user chooses a city from the lookup page.

In context:
I have added a "city name in arabic" text field, when i change the city i would like to change the "city name in arabic" when i choose another city the same way the postcode and district change.

I would appreciate the help!

Thank you for your time.

I have the same question (0)
  • Suggested answer
    Mohana Yadav Profile Picture
    61,248 Super User 2026 Season 2 on at

    Can you please share the OnLookup trigger code?

    You may have missed to validate the field

  • Suggested answer
    Nitin Verma Profile Picture
    21,812 Moderator on at

    Hi,

    You can write your code as per below link

    learn.microsoft.com/.../devenv-onlookup-pagefieldextension-trigger

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 Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders

These are the community rock stars!

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 566 Super User 2026 Season 2

#2
YUN ZHU Profile Picture

YUN ZHU 347 Super User 2026 Season 2

#3
Grigorios Mavrogeorgis Profile Picture

Grigorios Mavrogeorgis 327 Super User 2026 Season 2

Last 30 days Overall leaderboard

Featured topics

Microsoft Training Manuals

Product updates

Dynamics 365 release plans