Skip to main content

Notifications

Announcements

No record found.

Finance | Project Operations, Human Resources, ...
Suggested answer

CheckBox Form Control Change color

Posted on by Microsoft Employee

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.

  • Sergei Minozhenko Profile Picture
    Sergei Minozhenko 23,089 on at
    RE: CheckBox Form Control Change color

    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.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: CheckBox Form Control Change color

    I am using D365 F&O

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: CheckBox Form Control Change color

    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

  • Suggested answer
    Sergei Minozhenko Profile Picture
    Sergei Minozhenko 23,089 on at
    RE: CheckBox Form Control Change color

    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

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans