AX 2012 - How to make a form field mandatory
Hello Readers,
Some days ago, we had come across a requirement that we need to make a form field mandatory. We are sharing this article to help you to understand how you can achieve the same requirement.
Requirement:
Make 'document date' mandatory for Invoice Journal Lines form.
Solution:
1. Go to Accounts payable/Area page/Journals/Invoices/Invoice Journal, Invoice journal form will open like below...
2. Click on lines in invoice journal form, journal voucher form will open.
3. Right click on document date field and click on personalize. You can see AOT form name to be edit. Click on edit button like below...
5. Now, form document date field has been mandatory, if you try to save the form data without document date it will through an error like "Field 'Document date' must be filled in."
Some days ago, we had come across a requirement that we need to make a form field mandatory. We are sharing this article to help you to understand how you can achieve the same requirement.
Requirement:
Make 'document date' mandatory for Invoice Journal Lines form.
Solution:
1. Go to Accounts payable/Area page/Journals/Invoices/Invoice Journal, Invoice journal form will open like below...
2. Click on lines in invoice journal form, journal voucher form will open.
3. Right click on document date field and click on personalize. You can see AOT form name to be edit. Click on edit button like below...
4. Expand the designs node of this form and make the document date mandatory after selecting mandatory = yes in the form properties.
5. Now, form document date field has been mandatory, if you try to save the form data without document date it will through an error like "Field 'Document date' must be filled in."
We hope this article helped you to understand, how you can make a form field mandatory on form level. Comment below if you like this article...
Author:
Chirag Gupta
Microsoft Dynamics 365 AX Technical Consultant at IBM Bangalore
Date:
14-Sep-2019
Happy Learning !!
Thanks for posting such a Useful information .You done a great job.
ReplyDeleteMS Dynamics AX Online Training
Thanks for lovely words :)
DeleteThanks for appreciation :)
ReplyDelete