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 / Dropdown box's default...
Power Apps
Unanswered

Dropdown box's default value in a Gallery did not reset after a button is pressed

(1) ShareShare
ReportReport
Posted on by 160

Hi guys! I'm looking into creating a gallery that would execute repeating tables, with reference to Shane Young's YouTube tutorial on PowerApps Repeating Tables like InfoPath Part 1 - Enter the data: PowerApps Repeating Tables like InfoPath Part 1 - Enter the data (youtube.com)

The issue is that I put this expression into my "OnSelect" property of my "Next Page" button to reset the default value of the dropdown: 
ClearCollect(MeasureCollection,{LineValue: Reset(InputDimension)}); Navigate(HelloForm). Below is the screenshot of my "Next Page" button:

 

DelDev_1-1720746651312.png

 

My intention is that when the button "Next Page" is pressed, it would reset the default value of the dropdown to blank and navigate to the "HelloForm". "HelloForm" is the screen that has the dropdown in a gallery that I'm working on right now. My formula in the "Default" property for the dropdown is ThisItem.LineValue , with reference to Shane Young's tutorial mentioned above.

 

When I run my app and after pressing the "Next Page" button, it should reset the default value of the dropdown to blank. The thing is that it did not and I have encountered this error instead in the following screenshot below:

 

DelDev_0-1720746608768.png

 

Did I put the formula wrongly or did I missed anything? Let me know if there is any, thanks!

 

Categories:
I have the same question (0)
  • Michael E. Gernaey Profile Picture
    53,960 Moderator on at

    Hi @Del-Dev 

     

    The button is considered out of the Form and Gallery, its simply on the screen.

     

    So lets do this.

     

    1. In the OnVisible of the Screen put this

    Set(_ResetDropDown, false);
    
    

     

    2. In the Your Button, after you changed the Collection do this

    Set(_ResetDropDown, true);
    Set(_ResetDropDown, false);
    

     

    Now in the Dropdown's Reset Property put _ResetDropDown

     

    This will force it to reset, from outside the Gallery.


    If I have helped you, I would really appreciate if you please Mark my answer as Resolved/Answered, and give it a thumbs up, so it can help others

    Cheers

    Thank You
    Michael Gernaey MCT | MCSE | MCP | Self-Contractor| Ex-Microsoft
    https://gernaeysoftware.com
    LinkedIn: https://www.linkedin.com/in/michaelgernaey

     

  • Del-Dev Profile Picture
    160 on at

    Hi @FLMike,

     

    Thank you for your reply! There are a few questions I would like to clarify with reference to your point 1 and 2:

     

    1. In the OnVisible of the Screen put this

    Set(_ResetDropDown, false);

     

    For this, I just put the above expression in the "OnVisible" property of the Screen that has the Gallery in it right?

     

     

    2. In the Your Button, after you changed the Collection do this

    Set(_ResetDropDown, true);
    Set(_ResetDropDown, false);

     

    For this, I just change the ClearCollect expression back to ClearCollect(MeasureCollection,{LineValue: ""}); Navigate(HelloForm) to remove the Reset function and put back the "" beside the LineValue and put the expressions you have suggested, Set(_ResetDropDown, true); and Set(_ResetDropDown, false); beside my Navigate(HelloForm)?

     

  • Michael E. Gernaey Profile Picture
    53,960 Moderator on at

    @Del-Dev 

     

    For #1, is the Gallery on a different Screen than the Form? Ok, if the process is, Click on a row in the Gallery, then go to the Form Screen, AND the only way to load another record in the Form is to go back to the Gallery

     

    Then do just the two expression IN the OnVisible of the Form Screen.

     

    If I have helped you, I would really appreciate if you please Mark my answer as Resolved/Answered, and give it a thumbs up, so it can help others

    Cheers

    Thank You
    Michael Gernaey MCT | MCSE | MCP | Self-Contractor| Ex-Microsoft
    https://gernaeysoftware.com
    LinkedIn: https://www.linkedin.com/in/michaelgernaey

     

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 549 Most Valuable Professional

#2
Kalathiya Profile Picture

Kalathiya 225 Super User 2026 Season 1

#3
Haque Profile Picture

Haque 224

Last 30 days Overall leaderboard