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 input controls a...
Power Apps
Answered

Clear input controls after Patch

(0) ShareShare
ReportReport
Posted on by 104

Hello!

 

In a screen, a I have three input controls (one text and two date) and a button:

William_Azevedo_0-1678448640466.png

 

The button has a Patch function in it's OnSelect property which saves the info inserted in the controls to a Dataverse for Teams table. When I save the data by filling the controls and pressing the button, the controls keep displaying the last data I just inserted:

William_Azevedo_1-1678449115426.png

 

I would like these controls to be cleared instead. How can I do it?

 

Thank you in advance!

Categories:
I have the same question (0)
  • Verified answer
    Community Power Platform Member Profile Picture
    Microsoft Employee on at

    After The patch function
    Reset(TextInput1);

    Reset(Combobox1);
    Reset(Combobox2);
    But you have to make sure that the default property of the 3 controls is blank
    Please refer my comment as an accepted solution if it fix your problem
    Regards

  • William_Azevedo Profile Picture
    104 on at

    Thank you, OussamaOsman, it worked!

     

    If it heps anyone else, here's how I wrote the code:

    Patch(
     'Gestões da CIPA';
     Defaults('Gestões da CIPA');
     {
     Gestão:txtGestao.Value;
     Início:dtInicio.Value;
     Término:dtTermino.Value
     }
     );;
    Reset(txtGestao);; Reset(dtInicio);; Reset(dtTermino)

     

  • William_Azevedo Profile Picture
    104 on at

    And just to clarify, I couldn't see the Default properties to the controls, so I assumed the Value properties played the same role:

    William_Azevedo_0-1678454732827.png

     

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    There is default value for TextInput control but i believe because you are using teams for developing purposes also i see lots of diff between your browser and mine. 
    For me, I use only ";" if I put two ";;" it will give me error

  • William_Azevedo Profile Picture
    104 on at

    For me, I use only ";" if I put two ";;" it will give me error

    Based on what i saw in this topic, i guess it is something related to the region we are:

    William_Azevedo_0-1678455698473.png

    I'm in Brasil and it worked with ";;", as you could see.

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 377 Most Valuable Professional

#2
11manish Profile Picture

11manish 165 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 110 Super User 2026 Season 2

Last 30 days Overall leaderboard