Skip to main content

Notifications

Microsoft Dynamics CRM forum
Suggested answer

Changing background colour of a form field

Posted on by 2
Hi,
 
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.
 
thanks
  • 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
    Hi,
    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.
    Regards,
    Leah
     

Helpful resources

Quick Links

Community Spotlight of the Month

Kudos to Mohamed Amine Mahmoudi!

Blog subscriptions now enabled!

Follow your favorite blogs

TechTalk: How Dataverse and Microsoft Fabric powers ...

Explore the latest advancements in data export and integration within ...

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 284,217 Super User

#2
Martin Dráb Profile Picture

Martin Dráb 225,202 Super User

#3
nmaenpaa Profile Picture

nmaenpaa 101,146

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans