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 Apps
Answered

Using a toggle

(1) ShareShare
ReportReport
Posted on by Microsoft Employee

I've started today with the powerapps, so maybe i'm missing something.

 

All i want is a toggle button that toggles the value of my field in excel. When i connect my colum that contains only true or false in plain text, the powerapps shows me a warning that it expects a true or false value. THis works though, it toggles the button if it's true.

 

But when i toggle the button from my preview or from my phone, it doesn't write back to excel.

 

Do i need to use the on change event to write the value back to excel, and if so how does that work?

 

Thanks for reading!

Categories:
I have the same question (0)
  • hpkeong Profile Picture
    2,944 on at

    Hi

     

    Please set:

    - OnCheck with Patch function to save your intended results into the column

    E. g. Patch(TableX, Defaults(TableX), ,{ColumnTitle : Toggle. Value})

     

    Please try and check.

     

    Hope this helps. Tq

  • Verified answer
    Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Thanks for your help!

     

    Your function was quite close, i used the following on the " on check" :

     

    Patch(Table1,First(Filter(Table1,ID=TB_ID.Text)),{ColumnTitle:"true"})

     

    Also had to format the the column in excel as text otherwise it would regocnise it as a boolean TRUE. Now it also works with the bind to defaults(which doesn't work with a booleanTRUE/FALSE sadly)

     

    Funny thing though, it doesn't work from my android phone

     

    Edit: oh i had excel open, somehow it locks the file from writing then. after closing the powerapp writes to excel

     

     

  • hpkeong Profile Picture
    2,944 on at

    Hi

     

    Excel is a container for data. When apps is executing, this must never be opened.

    Otht, dropbox will create a conflict file and eventually, nothing will be patched.

    Just sharing months of experience on this issue.

     

    Happy apping.

     

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!

Leaderboard > Power Apps

#1
Haque Profile Picture

Haque 85

#2
WarrenBelz Profile Picture

WarrenBelz 76 Most Valuable Professional

#3
Kalathiya Profile Picture

Kalathiya 38 Super User 2026 Season 1

Last 30 days Overall leaderboard