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 :
Finance | Project Operations, Human Resources, ...
Suggested Answer

CheckBox Form Control Change color

(0) ShareShare
ReportReport
Posted on by

Hi,

I am able to change background colour of string edit, int edit form controls, but I am not able to change the background colour or foreground colour of checkbox form control.

Is there any way I can change the colour of the checkbox so that it gets highlighted?

My requirement is to change the colour when check box value is yes.

I have the same question (0)
  • Suggested answer
    Sergei Minozhenko Profile Picture
    23,093 on at

    Hi Dhruvil,

    DisplayOption method should work with checkboxes as well. Are you using this approach or different? What AX version are you using?

    docs.microsoft.com/.../specify-color-font-background-controls

  • Community Member Profile Picture
    on at

    Hi Sergei,

    My form has both grid and non grid elements.

    For the grid elements, I am using display option and for the non grid elements, I am using activated event handler of datasource.

    My check box is outside the grid, so I am fetching the control and changing the background colour but it isn't working.

    Though it is working for rest form controls.

    Thanks,

    Dhruvil

  • Community Member Profile Picture
    on at

    I am using D365 F&O

  • Sergei Minozhenko Profile Picture
    23,093 on at

    Hi Dhruvil,

    Checkboxes can be colored in AX2012 with displayOption method, but indeed displayOption method has different behavior in D365 F&O and they are not colored anymore. Looks like bug or depreciated feature.

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 > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 660 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 549 Super User 2025 Season 2

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 307 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans