Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Dynamics 365 Community / Forums / Commerce forum / Custom Field Add in th...
Commerce forum

Custom Field Add in the CustomerAddEdit Form

(0) ShareShare
ReportReport
Posted on by 396

Hi,

I have found the CustomerAddEdit form in the SampleExtension of POS extension project. Basically i go through the code and add those existing code to my application. I have doubt, when i created one new customer i did not get the value of new fileds(ssn and isVip) in the database. Can any briefly explain how did it works? In which table these fields was saved?

if there is any document about this particular problem please send me in this below mail id

sahukp07@gmail.com

  • Pankaj_93 Profile Picture
    Pankaj_93 396 on at
    RE: Custom Field Add in the CustomerAddEdit Form

    Hi Adolfo,

    It is there in the pos extension. Enable the files and register in the extension.json and comment the sampleextensions in the tsconfig file.

    Build the CRT project (Runtime.Extensions.EmailPreferenceSample). Copy the dll and paste in the retails server ext folder and register in the commerceruntime.ext file.

    Debug and check

  • Adolfome9 Profile Picture
    Adolfome9 110 on at
    RE: Custom Field Add in the CustomerAddEdit Form

    Hi Pankaj;

    I would like to add a custom field to Customer, could you share me please some materials or resources that you use to achieve your goal.

    Thanks in advance.

  • Pankaj_93 Profile Picture
    Pankaj_93 396 on at
    RE: Custom Field Add in the CustomerAddEdit Form

    Hi Aamir,

    CRT is there to save customer in the extension table. You need to extend the customer table.

    This is the solution name in the CRT(Runtime.Extensions.EmailPreferenceSample).

  • Pankaj_93 Profile Picture
    Pankaj_93 396 on at
    RE: Custom Field Add in the CustomerAddEdit Form

    Dear Syed,

    You will first write the html code in the Pos.Extensions=>SampleExtensions=>ViewExtensions=>CustomerAddEdit as well as typescript.

    Second, you need to database operation in the CRT(Runtime.Extensions.EmailPreferenceSample).

  • AamirKhan Profile Picture
    AamirKhan 85 on at
    RE: Custom Field Add in the CustomerAddEdit Form

    Hi, 

    Hope you are doing well.

    I am working on to "Add custom fields in Customer Add/Edit" and got succeed to display the custom fields but unable to find how to save the values in database. Can any one briefly explain how to create CRT extension to save the input values in database????

    If there is any document/link about the problem I'm facing kindly share with me

  • Syed Maaz Tariq Profile Picture
    Syed Maaz Tariq 5 on at
    RE: Custom Field Add in the CustomerAddEdit Form

    Hi Okansana-Kovaliova,

    I'm new in POS extensions for D365FO, Can you please share the link or document to save the values for custom fields in Customer  Add/Edit form in database?

    Any help much highly be appreciated in advance.

  • Pankaj_93 Profile Picture
    Pankaj_93 396 on at
    RE: Custom Field Add in the CustomerAddEdit Form

    Thank you Oksana for your response. Now I am able to enable/disable the toggle buttons.

  • Verified answer
    Oksana Kovaliova Profile Picture
    Oksana Kovaliova 3,597 on at
    RE: Custom Field Add in the CustomerAddEdit Form

    Are you using ToggleSwitch class for your Toggle button?

    You can set Checked = True and Enabled = False for ToggleSwitch

  • Pankaj_93 Profile Picture
    Pankaj_93 396 on at
    RE: Custom Field Add in the CustomerAddEdit Form

    Thank you Niraj for your response.

    I hope, you are doing well.

    Basically there is a requirement, there is 3 toggle button and i want to make a single toggle button should be Yes mandatory but problem is that if i do not checked the toggle button that time i am not able to get this properties in the CRT. Can you tell me how to do this???

  • Suggested answer
    Neeraj Chawla Profile Picture
    Neeraj Chawla 1,147 on at
    RE: Custom Field Add in the CustomerAddEdit Form

    Toggle button is either Yes or No.

    You mean to say that you want to make it mandatory to Yes if default value is No or Vice Versa.

    Logically this does not make any sense.

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

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,516 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,407 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans