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 :
Power Platform Community / Forums / Power Apps / Create a red/green ind...
Power Apps
Answered

Create a red/green indicator next to a field in a model-driven form?

(0) ShareShare
ReportReport
Posted on by 154

In a model-driven Power App, I have main form. On the main form, next to an individual field control, I'd like to have a red/green indicator based on the contents of the field. In this case, I'd like to indicate whether the field has been changed along the business process flow compared to another column that has the original text.

 

I've made a lot of canvas apps, and so I'm struggling a little with model-driven as I can't just drop an icon into the form with a Power Fx formula to control its color. How do I create similar context-driven indicators on a model-driven form, in general? I'm comfortable with Web Resources and Javascript, but not sure how to apply this to a dynamic indicator on a form.

 

Any suggestion or strategies would be most welcome.

I have the same question (0)
  • Verified answer
    Jonathan Manrique Profile Picture
    2,695 on at

    Hi @BostonSailor 

     

    To develop this type of components you must use PCF, based on TypeScript, it is the basis for developing new components in Model Driven

    What you are asking to do, you can find it in this link in a ready-to-use solution, it will still serve as a reference for other options.

    https://pcf.gallery/

     

    If I have answered your question, please mark your post as Solved.

    If you like my response, please give it a Thumbs Up.

    You can accept more than one post as a solution

  • Verified answer
    EricRegnier Profile Picture
    8,720 Most Valuable Professional on at

    Hi @BostonSailor,

    It's a little different with model-driven apps, you can't just apply Power Fx to out-of-the-box controls and forms, apart from Power Fx command buttons and in Dataverse formula columns. There are a few options though to achieve that:

    1. Embedded canvas app, so you would perform your logic just as you would on a canvas app but that is displayed within a model-driven form. More info: https://learn.microsoft.com/power-apps/maker/model-driven-apps/embed-canvas-app-in-form?WT.mc_id=DX-MVP-5004271 
    2. Web resource (html + JS) and embed that resource on the form. But requires you to know coding. More info: https://learn.microsoft.com/power-apps/developer/model-driven-apps/web-resources?WT.mc_id=DX-MVP-5004271 
    3. PCF control and apply the custom control on the form, but requires you to know the framework and TypeScript. More info: https://learn.microsoft.com/power-apps/developer/component-framework/create-custom-controls-using-pcf?WT.mc_id=DX-MVP-5004271 
      I'm not sure one exists but you can look in the PCG Gallery if there's an existing control that can satisfy your needs: https://pcf.gallery 


    Hope this helps!

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 Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 426

#2
WarrenBelz Profile Picture

WarrenBelz 381 Most Valuable Professional

#3
Kalathiya Profile Picture

Kalathiya 315 Super User 2026 Season 1

Last 30 days Overall leaderboard