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)

Default Checkbox (True)

(0) ShareShare
ReportReport
Posted on by

Good morning to all:

I have a question about that subject, I need the default value in the checkbox of a table to be true. 

I read in the forum about this Theme, but the answers are not clear and i need a better explanation.

I have already in the propierties the "value = 1" and "Autodeclaration = Yes"

Which method do I need in the design of the checkbox?

How do I call it from the form "init"?

Thanks you.

*This post is locked for comments

I have the same question (0)
  • Verified answer
    André Arnaud de Calavon Profile Picture
    300,911 Super User 2025 Season 2 on at

    HI Adame,

    On the table, you should create or modify the initValue() method. Then you can add coding like this:

    this.setEnable = NoYes::Yes;   (setEnable should be replaced with your fieldname)

  • AX 2012 r3 Profile Picture
    2,426 on at

    Hi Adame,

    Try this

    yourcontrolname.value(True);

    Regards.

  • Community Member Profile Picture
    on at

    Thank you very much, that works. I had tested with that, but I had used an "init ()" method instead of "initValue ()", now I understand why it failed.

    Thanks again.

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