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 / Pathing toggle value
Power Apps
Answered

Pathing toggle value

(0) ShareShare
ReportReport
Posted on by Super User 2024 Season 1

Hi

Toggle data will be stored in database as true or false 

But I am looking for data to be stored as Yes/ No form so that I want to show my data in gallery in the form of Yes/no not as true or false

Screenshot (614).png

As you can see in my gallery I want it to be Yes/No 

Please help

 

Categories:
I have the same question (0)
  • Verified answer
    NandiniBhagya20 Profile Picture
    4,667 Super User 2024 Season 1 on at

    In your label's text property you can below formula - 
    If(ThisItem.ToggleColumnName = true, "Yes", "No")

  • Akash17 Profile Picture
    Super User 2024 Season 1 on at

    Thank You @NandiniBhagya20 It perfectly worked now I am able to get Yes/No

    it would be better for me to know that, is there any way that I can store value as yes/no at the backend data source

     

  • NandiniBhagya20 Profile Picture
    4,667 Super User 2024 Season 1 on at

    If it is for display purpose you can use column formatting or you can add a calculated column in your list with below formula - 
    IF([YesNoColumn]=true, "Yes","No")
    But i will not suggest this, you can go for column formatting - 

    {
    "$schema": "https://developer.microsoft.com/json-schemas/sp/v2/column-formatting.schema.json",
    "elmType": "div",
    "txtContent": "=if(@currentField==true, 'Yes', 'No')"
    }
    https://docs.microsoft.com/en-us/sharepoint/dev/declarative-customization/column-formatting 

  • Akash17 Profile Picture
    Super User 2024 Season 1 on at

    Okay, Your solution worked perfectly with SharePoint data source but it is not working with OneDrive data source 

    can you please suggest me

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 846

#2
Valantis Profile Picture

Valantis 532

#3
Haque Profile Picture

Haque 410

Last 30 days Overall leaderboard