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 / Bug: Toggle Control
Power Apps
Answered

Bug: Toggle Control

(0) ShareShare
ReportReport
Posted on by 284

Hi,

 

I have recently come accross a bug with the toggle control which I would like to report. I have been able to replicate this bug in a reletivly simple example. 

 

1. Create a collection

Collect(Collection1, 
 {Name: "Anthony Phan", NightShift : false}, 
 {Name: "John Smith", NightShift : false}, 
 {Name: "Kevin Do", NightShift : true}, 
 {Name: "Aaron Oxford", NightShift : false}
)

2. Great a gallery with a label and and toggle. 

 

3. Set the "Default" property of the toggle to the "NightShift" value

 

Default = ThisItem.NightShift

4. Set the OnCheck property asthe formula below to update the value within Collection1

OnCheck = Patch(Collection1,ThisItem, {NightShift: true})

5.Set the OnCheck property asthe formula below to update the value within Collection1

OnUncheck = Patch(Collection1,ThisItem, {NightShift: false})

Now if you click the toggle control it will behave as expected and change the NightShift value. However if you slide the toggle so that it is in the middle the control will start to toggle between On and Off as shown in the video. Furthermore if you toggle controls lower in the gallery the record will disappear as shown in the video.

 

 

Categories:
  • v-micsh-msft Profile Picture
    Microsoft Employee on at

    Thanks for reporting this.

     

    Seems to be a little trick for me.

     

    Please change the NightShift name to some other string.

    Doing it in this way stops the moving of the toggle from the first item in the gallery.

     

    Regards,

    Michael

  • AnthonyPhan Profile Picture
    284 on at

    Hi @v-micsh-msft,

     

    I'm not sure what you mean by changing the NightShift name to another string as NightShift is a true/false datatype. 

    Agreed that it seems to be a trick, but I have had multiple app users complain to me that the app i developed in unusable due to this bug.

     

  • v-micsh-msft Profile Picture
    Microsoft Employee on at

    Modify the collection as below:

    Collect(Collection1, 
     {Name: "Anthony Phan", Night: false}, 
     {Name: "John Smith", Night: false}, 
     {Name: "Kevin Do", Night: true}, 
     {Name: "Aaron Oxford", Night: false}
    )

    Regards,

    Michael

  • AnthonyPhan Profile Picture
    284 on at

    Hi @v-micsh-msft,

    Im not sure why changing the name of the column in the collection would make any difference. With that said, I did try you suggestion and the issue persists. Note I also had to update the default, oncheck and onuncheck properties of the toggle aswell otherwise changing the toggle position would not update my collection.

  • v-micsh-msft Profile Picture
    Microsoft Employee on at

    Thanks for the update.

    I will explain a bit.

    During my testing, the toggle would keep moving between on and off, and  it stops only after I modified the Collection.

    Feedback will be send from my side.

    Appreciate your patience and understanding.

     

    Regards,

    Michael

     

  • Verified answer
    corey_msft Profile Picture
    Microsoft Employee on at

    Hi Anthony, 

     

    The bug has been verified and fixed.  The fix is scheduled to be deployed to the general public in the second half of April.  

     

    Thanks,

    Corey.

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 383 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 356

#3
WarrenBelz Profile Picture

WarrenBelz 232 Most Valuable Professional

Last 30 days Overall leaderboard