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

Notifications

Announcements

No record found.

Community site session details

Community site session details

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

how to autofill fields of a page

(0) ShareShare
ReportReport
Posted on by 10

hello guys,

i would like to know how can i automatically fill the fields of a page once i select a customer number

my card has 8 fields: (customer number, name, number , county code, county, sub county, estate, estate code) which are used when applying for a service

this data is stored in 3 different table

1. customer table has the fields customer number, customer name, number

2. sccounties table has the fields county code, county, and sub county

3. scestates table has the fields estate and estate code

when a customer makes a service request, all this information is filled the first time.

is there a way, where once the information about a customer has been entered and saved, if the same customer again makes a service, the system will automaticaly fill all other fields once he fills the customer number

thanks

I have the same question (0)
  • Suggested answer
    JAngle Profile Picture
    133 on at

    You might want to review the code of the Sales Header table. This is exactly what happens when you pick an existing customer record. Maybe you should be using a cut down version of the pages that display the Sales Header and Sales Line instead of starting from scratch.

  • Suggested answer
    Tabrez Ajaz Profile Picture
    785 on at

    Hi kelling,

    You can write your code in [OnAfterValidate() trigger in case of table extension] or [OnValidate() trigger in case of your custom table] of the customer no. field, so whenever if any customer number is entered in the field the trigger will be executed and you can populate the fields.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,135

#2
YUN ZHU Profile Picture

YUN ZHU 733 Super User 2025 Season 2

#3
Sumit Singh Profile Picture

Sumit Singh 612

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans