Skip to main content



No record found.

Microsoft Dynamics CRM forum
Suggested answer

Changing background colour of a form field

Posted on by 2
I have a few read only fields on a form which automatically populate with whole numbers. I need to change the background color of the field based on the value that is generated automatically. I can't seem to find a function that lets me set the value, does anyone have any tips.
  • CU27051121-0 Profile Picture
    CU27051121-0 2 on at
    Changing background colour of a form field
    Unfortunately using PCF control will only work with a maximum of 2 colours per control. So this won't work for my use case.
  • Suggested answer
    Leah Ju Profile Picture
    Leah Ju Microsoft Employee on at
    Changing background colour of a form field
    There is no OOB ways to achieve it.
    But you can try to use PCF control, like this:
    --PCF Color Field:
    A control that allow you change the font color and/or background color from a field inside form on Model Driven App.

    I hope you can mark my answer verified if it answer your question! If you have any questions, please feel free to contact me.

Helpful resources

Quick Links

Can you answer this forum question?

You could make someone's day!

Community Newsletter - May 2024

Kudos to our community stars!

Community Spotlight of the Month

Kudos to Mohamed Amine Mahmoudi!


André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 283,682 Super User

Martin Dráb Profile Picture

Martin Dráb 225,000 Super User

nmaenpaa Profile Picture

nmaenpaa 101,146

Featured topics

Product updates

Dynamics 365 release plans