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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Clear Gallery Selected...
Power Apps
Unanswered

Clear Gallery Selected Form After Submit & New Form

(0) ShareShare
ReportReport
Posted on by 68

Hi everyone,

 

I have a gallery called ProgressGallery which has a number of entries from an entity.

 

When I select these gallery items, I navigate to the original form where a user can update the entries by hitting submit.

 

However, when they submit, the form does not clear. I have a new entry button that creates a new form/clears the form, but after this has been clicked, and I try to load another gallery item by selecting the item, nothing loads in the form. The gallery only loads the selected item if no new form has been created, i.e only on app startup. 

 

I currently have form.item set to ProgressGallery.Selected which also autofills the form with the topmost entry on my gallery.. 

 

Does anyone know how to fix this problem so that I can select a gallery item and fill the form at any point (even after submitting new entries) and clear the form after submit and on visible? 

 

Thank you, 

Categories:
I have the same question (0)
  • eka24 Profile Picture
    20,923 on at

    I suggest you insert a Button and OnSelect put:
      EditForm(FormName)

     

    This will turn the form into Edit mode to enable see the data that is clicked in the Gallery.

     

    You can also add a Refresh Button to refresh datasource:
       Refresh(Datasource)

    ------------

    If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

  • Verified answer
    v-yutliu-msft Profile Picture
    on at

    Hi @ashleylinkewich ,

    Do you want the integration of gallery, new form and edit form?

    If so, you need to set these properties, please check where's your problem.

    1)the gallery's Item:

    data source name

    2)the add button's OnSelect in this screen:

    Navigate(edit form screen);NewForm(Form1)

    3)the arrow button's OnSelect inside the gallery:

    Navigate(edit form screen);EditForm(Form1)

    4)the edit form

    set its data source:

    data source name

    set its Item:

    Gallery1.Selected

    set the submit button's OnSelect:

    SubmitForm(Form1);ResetForm(Form1);Back()

     

    Then if you click different buttons, you will open the form in different modes. Every time you submit the form, you will reset this form.

     

    Here's a doc about this kind of app in details for your reference:

    https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/working-with-forms

     

     

     

    Best regards,

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 796 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 327 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard