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 / .Clear Fields When Scr...
Power Apps
Unanswered

.Clear Fields When Screen Closses

(0) ShareShare
ReportReport
Posted on by 5,331 Moderator

I have two galleries

 

Selected a button in Gallery 1 autopopulates data in fields in Gallery 2.

 

The user also has some manual fields to enter; ther are also various other fields in Gallery 2 (dropdowns, textinput, labels).

 

There is a Submit button and a Reset/Clear button.

 

In both buttons are the same 'Reset' commands - Reset(RandomTextField), Reset(Dropdown) - and such.

 

I can not figure out how to clear or reset the content of the fields that are recieving the data from Gallery 1. 

 

There are only two fields in Gallery 1 (Name, Email), from the active directory. Click on button in Gallery 1 the Name.Text and Email.Text fields autopopulate in Gallery 2. How do I clear those when screen closes. Right now the previous name chosen remains with a new screen opens.

 

BTW, the Name and Email fields in Gallery 2 (where the data defaults to Gallery 1 the default properties are ThisItem.DisplayName

Categories:
I have the same question (0)
  • cds Profile Picture
    1,001 on at

    set thisitem = blank()

  • Phineas Profile Picture
    5,331 Moderator on at

    Set it where? I've got two fields I need to reset. Do I put the language in a field property? In the buttons?

  • cds Profile Picture
    1,001 on at

    after your submit button on select.. or on the  reset btn if you want..

     

    Patch(....);

    Set(ThisItem, Blank())

  • Phineas Profile Picture
    5,331 Moderator on at

    I'm not trying to patch anything. I just want to know that the data clears from the fields when the is hidden, and be able to click the 'Reset' while the form is being filled out and clear everything in the fields, including the auto-populated from Gallery 1. 

     

    Gallery 2 is using varIsNewMemberPopulator in the 'items'.

    The Name field has: ThisItem.DisplayName (as populated when the button is pressed in Gallery1 - sending data to Gallery 2.

     

    The Email field has: ThisItem.UserPrincipalEmail (as populated when the button is pressed in Gallery1 - sending data to Gallery 2.

     

    I typed Set(ThisItem, Blank()) into the 'Reset' button, nothing happend.

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

#2
Haque Profile Picture

Haque 206

#3
Kalathiya Profile Picture

Kalathiya 201 Super User 2026 Season 1

Last 30 days Overall leaderboard