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 :
Microsoft Dynamics AX (Archived)

Hide red * (asterisk) for mandatory field

(0) ShareShare
ReportReport
Posted on by 480

Hi

When creating a sales order in Dynamics AX 2012 there is a red asterisk indicating that there are mandatory fields that you have to fill in. I have changed the property on the fields so that they are not mandatory any more, but the asterisk is still there. Does anyone know how to hide it?

Thanks

*This post is locked for comments

I have the same question (0)
  • Sohaib Cheema Profile Picture
    49,438 User Group Leader on at

    It can also be due to two more reasons

    1) mandatory on Data Source level.

    2) Forced mandatory by code x++

  • Suggested answer
    Vilmos Kintera Profile Picture
    46,149 on at

    If a table field is supposed to be Unique, then data must be filled in. For that it would be set as mandatory on the Table.Field level. For some general purpose tables, where the fields' mandatoriness is situational, it is possible to set the mandatory flag on the FormDataSource.Field's level, or from code.

    Please make sure you validate what is the case for your table/field, do not fall far the user/business requests that easily if it could break your index and AX functionality.

  • aost2 Profile Picture
    480 on at

    I have changed the data source field

  • aost2 Profile Picture
    480 on at

    The field is not mandatory any more, but it will always have a value anyway because it is set from a default value. If the user wants to change it than that is ok but not necessary. Now they only wants the asterisk to be hidden.

  • Suggested answer
    André Arnaud de Calavon Profile Picture
    301,069 Super User 2025 Season 2 on at

    Hi aost2,

    You haven't told which fields were changed. In general making mandatory fields as non-mandatory is a bad idea even if you have default values.

    A red asterisk is not indicating there are mandatory fields, but it is indicating the record is new and does not have a record ID yet. Mandatory fields are red underlined. You cannot change the behavior on the new record indicator.

  • aost2 Profile Picture
    480 on at

    The field that is not mandatory any more is a customized field, created just for this customer, so not standard. The purpose of this field is now changed so they don´t want it mandatory but have a default value instead. So now when I create a new sales order I open form SalesCreateOrder, the red asterisk is displayed on a customized tabpage "XXX options". If I click the tabpage the asterisk is gone so I guess I just have to add a refresh/reread somewhere the first thing when the form is opened.

  • aost2 Profile Picture
    480 on at

    I have solved this by changing the tabpage property FastTabExpanded from No to Yes. If the tabpage is expanded the asterisk is gone. I would have liked this to work with the tabpage collapsed but I didn´t manage to fix that.

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 > 🔒一 Microsoft Dynamics AX (Archived)

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#1
Priya_K Profile Picture

Priya_K 4

#3
MyDynamicsNAV Profile Picture

MyDynamicsNAV 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans