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 / Problem with toggle boxes
Power Apps
Answered

Problem with toggle boxes

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi PowerApp Experts

 

I have made an app an have problem with identifying my actual problem.

 

I have 3 screens, browse screen, edit screen and display screen - and the interaction works perfect with the text boxes.

 

All my toggle boxes I have set to default: false - so when the user enters a new form, all toggle boxes are showing false value (that is what I want)

 

When all data is entered, it jumps me back to browse screen (works fine) - then I want to get the data displayed on Display Screen - all data fine, false and true values on toggle boxes - then made an edit button - goes to edit screen - then all toggle boxes are reset to default false.

 

I made a OnVisible; refresh('SP list'), but it stills display all toggles as false.

 

What I'm I doing wrong?

 

BR

 

Bo

Categories:
I have the same question (0)
  • Verified answer
    timl Profile Picture
    36,770 Super User 2026 Season 1 on at

    Hi @Anonymous 

    The reason for this is because you've set the default values of the toggle boxes to false. This means that the toggle controls will show false whenever you create a new record, or view an existing record.

    This answer is to set the default value to a formula that sets the value to false, only when a user is adding a new record. The formula you would use would look like this:

    If (YourFormName.Mode = FormMode.New, 
     false, 
     ThisItem.YourToggleFieldName
    )

     

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi

     

    Thank you - this work fine!!

     

    BR

     

    Bo 

  • Hotate Profile Picture
    Microsoft Employee on at

    Thank you for sharing your scenario 🙂 Have a nice day!

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
WarrenBelz Profile Picture

WarrenBelz 509 Most Valuable Professional

#2
Haque Profile Picture

Haque 302

#3
11manish Profile Picture

11manish 265

Last 30 days Overall leaderboard