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 / Display Yes/No-Choice ...
Power Apps
Suggested Answer

Display Yes/No-Choice as read-only toggle in model-driven app view

(0) ShareShare
ReportReport
Posted on by
Hi,
I use a model-driven app to edit some entries of customers.
Two columns are Yes/No-Choices that are currently displayed as the strings 'Yes' or 'No'.
I already found out that i can use the Power Apps grid control to change them to toggles, but the entry itself automatically becomes editable directly inside the grid as well.
It should only be possible to edit an entry by selecting it and clicking the edit command to avoid accidental modifications.
 
Is there a way to change these columns ('attachXML' and 'driverCC' in the attached screenshot) to toggles, which would look much prettier?
 
Best Regards!
power_app.png
Categories:
I have the same question (0)
  • Suggested answer
    Sunil Kumar Pashikanti Profile Picture
    2,318 Moderator on at
     
    Current Limitation (Reason Why It Doesn’t Work)
    In model-driven apps, the only way to show Yes/No values as toggles is by enabling the Power Apps Read‑Only Grid or Power Apps Editable Grid, but:
         The toggle visualization is only available in the Editable Grid.
         The Editable Grid always allows inline editing, cannot be disabled for just 1 column.
         The Read‑Only Grid does not support toggle UI, only text.
     
    If you want read‑only toggles in a model-driven view:
         Best option → Use a read‑only PCF Control (Shows as toggle, cannot be edited.)
         Simplest option → Use Read‑Only Grid + formatted Yes/No (No toggle UI, but visually improved and stays non-editable.)
     
    Option 1:
    Use the Power Apps Grid but disable editing at the table level
    You can disable editing of the entire table in the grid, but it affects all fields, not just Yes/No.
    How:
    • Turn off “Enable editing in grids” for the table in the solution.
    • This makes toggles appear but users cannot change any column inline.
    Pros:
         You get the toggle UI 
         No inline edits possible
    Cons:
         The entire grid becomes non-editable
     
    This is the only way to use toggles without inline editing.
    Option 2:
    Create a Custom PCF Control (Best‑looking option)
    You can build or download a PCF “read-only toggle display” that:
    • Shows a toggle UI
    • Does not allow user changes
    • Works inside model-driven views
    There are several open‑source PCFs (e.g., “Boolean Toggle Display” controls) shared in community blogs and GitHub.
         Looks exactly like a toggle
         Read-only
         No inline editing
     
    Option 3:
    Keep the Yes/No text but make it nicer
    If toggles are not important, you can enhance appearance using formatting:
    • Use column formatting (Yes → ✔, No → ✖)
    • Or apply theme colors per value
    This keeps the grid read-only and still improves clarity.
     
    References:
     
    ✅ If this answer helped resolve your issue, please mark it as Accepted so it can help others with the same problem.
    👍 Feel free to Like the post if you found it useful.
     

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 424

#2
WarrenBelz Profile Picture

WarrenBelz 355 Most Valuable Professional

#3
11manish Profile Picture

11manish 290

Last 30 days Overall leaderboard