Showing results for 
Search instead for 
Did you mean: 
Community Champion
Community Champion

BUG: Functions Lost when Grouping / Ungrouping Controls

After a long day of PowerApping and making great progress on a complex app, I ran into a HUGE snag. 


I think maybe all Grouped elements receive the same Visibility when Grouped. This is not GOOD. Especially if you have Controls with custom visibility set.


  • I use the asterisks on form fields to drive a progress bar
  • The asterisk visibility depends on a variable and the content of the field (IsBlank, etc.)
  • After a bunch of work on other areas of the app, I revisited the form and noticed progress bar was not working
  • Looked at each asterisk and ALL OF THE AND FUNCTIONS I had created to control visiblitly were gone and only the variable name remained. 
  • 2018-06-26_17-35-48.png
  • THE GOOD: 
    • I was able to CTRL+Z my way back to the critical change (about 100 CTRL + Z's !) and copy down all my AND functions into a OneNote
    • 2018-06-26_17-30-37.png
  • THE BAD: 
    • When attempting to CTRL + Y my way back to current state, the app got stuck in a loop and just says "Redoing changes" every 6-7 times I click CTRL + Y. 
    • I lost a lot of diverse work (creating new vars, creating new menus, etc.) that is going to be hard to redo

Be careful when grouping / ungrouping items, you may lose custom Visibility you set on individual controls. 

Community Champion
Community Champion

Community Champion
Community Champion

Looking closer at this...


Originally each Control had something to the effect of: 

    dropdown.Selected.Value = " ")

The issue occurred after renaming "varNewPopup" to "varNewEvalPopup" and Grouping a bunch of Controls together. Not sure which action was actually responsible. 

Community Support
Community Support

Hi @ericonline,


Could you please share a bit more about the issue within your app?


I have made a test on my side and don't have the issue that you mentioned. Please take a try to modify your formula as below:

    dropdown.Selected.Value = " "

If you have renamed your variable name, please also modify the variable name within the formula where you reference to the variable.


Best regards,


Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hi @v-xida-msft. Thank you for the response. 


The bug is: 

  • The control WAS originally set to: 
    • And(
          dropdown.Selected.Value = " "
  • With all controls NOT visible, I changed the variable name from varNewEvalPopup to varNewEval AND ungrouped/regrouped the applicable Controls
  • THEN later when working with the Controls again, ALL original code was overwritten by the new variable name ONLY
  • All original code shown above was GONE and only varNewEval was set.


I've been able to duplicate this on my end. 

Helpful resources

PA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

R2 (Green) 768 x 460px.png

Microsoft Dynamics 365 & Power Platform User Professionals

DynamicsCon is a FREE, 4 half-day virtual learning experience for 11,000+ Microsoft Business Application users and professionals.

Users online (2,368)