web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id : gS3QgOIcowPDCoBuoo9dBJ
Power Apps - Building Power Apps
Answered

Form wont clear/reset

Like (0) ShareShare
ReportReport
Posted on 21 Jul 2022 17:24:46 by 56

Hi, I have an developed an app, and there is a gallery of items to choose from that feeds a form. All fed from SharePoint Lists. I can select individual gallery items or search across the gallery....all works with no issues

 

On selecting a gallery item then it navigates to full details of the item selected in a new screen. All works as designed.

 

When I use the search functionality to locate & select a gallery item the selected item, flashes on the new screen then defaults to the previous selected item. Despite having a ResetForm statement when I submit the form.

 

I've tried resetform on selection of submit button, ive tried reset form onsuccess......but neither seem to be effective or they are being over ridden to the original form content.

 

Any assistance would be gratefully received.

Categories:
  • RandyHayes Profile Picture
    76,287 Super User 2024 Season 1 on 22 Jul 2022 at 22:55:46
    Re: Form wont clear/reset

    @Big_Blue_Bear 

    Happy to help!

  • Big_Blue_Bear Profile Picture
    56 on 22 Jul 2022 at 16:27:11
    Re: Form wont clear/reset

    Many thanks Randy - all works now. Your suggestion / solution is much appreciated

  • Verified answer
    RandyHayes Profile Picture
    76,287 Super User 2024 Season 1 on 22 Jul 2022 at 14:44:13
    Re: Form wont clear/reset

    @Big_Blue_Bear 

    These formulas should be changed as follows:

    - the OnSelect action formula for your Gallery:

    Set(glbRecord, ThisItem); 
    Navigate(DetailScreen1); 
    Reset(SearchBox)

    - the formula you are using to Submit the Form:

    SubmitForm(yourFormNameHere)

    - the OnSuccess action formula of your Form:

    Navigate(NewApplicationScreen_3); 
    Set(ResetDetailForm1, true); // Not sure what this is for, but most likely not needed

    - the Item property of the form:

    glbRecord

     

    Your problem all stemmed from the Reset on the SearchBox.  When you reset that, it changed the Gallery items because most likely you are searching for items in your gallery based on that control.  Your form then was set to the Selected item of the gallery...since the Gallery was getting re-evaluated (because the search box was reset), the selected record was changing in your form.

    The above should clear all that up.

     

     

  • Big_Blue_Bear Profile Picture
    56 on 22 Jul 2022 at 12:40:25
    Re: Form wont clear/reset

    Hi Randy, please see below:

    Please provide:

    - the OnSelect action formula for your Gallery - Navigate(DetailScreen1, ScreenTransition.None); Reset(SearchBox)

    - the formula you are using to Submit the Form - Navigate(NewApplicationScreen_3); Set(ResetDetailForm1, true);

    - the Item property of the form. - BrowseGallery1.Selected

  • RandyHayes Profile Picture
    76,287 Super User 2024 Season 1 on 21 Jul 2022 at 17:47:41
    Re: Form wont clear/reset

    @Big_Blue_Bear 

    Please provide:

    - the OnSelect action formula for your Gallery

    - the formula you are using to Submit the Form

    - the Item property of the form.

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

Telen Wang – Community Spotlight

We are honored to recognize Telen Wang as our August 2025 Community…

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 637 Most Valuable Professional

#2
stampcoin Profile Picture

stampcoin 570 Super User 2025 Season 2

#3
Power Apps 1919 Profile Picture

Power Apps 1919 473

Loading complete