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 / How to reset a toggle ?
Power Apps
Unanswered

How to reset a toggle ?

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

I had two ways to reset a toggle working yesterday which are not working anymore today:

 

First one: reset(DataCardValue) 

Second one:

 - on visible screen I create a variable updatecontext({resetToggle: false})

 - on the toggle I put resetToggle into the reset field

 - when I want to fire the reset, I updatecontext({resetToggle: true})

 

Do you have a third method which might work for more than one day ?

Categories:
  • eka24 Profile Picture
    20,925 on at
    Check this post
    https://powerusers.microsoft.com/t5/Building-Power-Apps/Reset-toggle/m-p/28023

    If you like this post, give a thumbs up. Where it solved your issue, Mark as a solution
  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    I would like to reset the toggle upon the failure of an if clause.

    In the "oncheck" field of the toggle, I want to put something like:

    If("this is is true",
    "than update the list containing this toggle",
    "else reset this same toggle"
    )

     

  • WarrenBelz Profile Picture
    156,730 Most Valuable Professional on at

    Hi @Anonymous ,

    You don't need a variable - I will it toggle Toggle1 - replace this with your toggle's name.

    Firstly, make sure the Default of the Toggle1 is what you need to reset it to (I assume false).

    When you want to fire the reset - just put 

    Reset(Toggle1)

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

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

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 360 Super User 2026 Season 2

#2
M Bilal Khan Profile Picture

M Bilal Khan 325

#3
Mohsin Ali Profile Picture

Mohsin Ali 232

Last 30 days Overall leaderboard