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

Announcements

News and Announcements icon
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
    306,430 Super User 2026 Season 1 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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans