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 : 6jeK+Hs1AWmdvGr1B85rVC
Power Apps - Building Power Apps
Unanswered

Clear data in text input when I click cancel / submit button

Like (0) ShareShare
ReportReport
Posted on 3 Jun 2024 08:43:01 by 56

Hi, 

I have a gallery here. 

angelica00__0-1717403957347.png

angelica00__1-1717403994935.png


I want to clear the data that I add row if I click the cancel or submit button 

angelica00__2-1717404070859.png

Items: ItemsCollectionCommitmentEdit

Commitment Text input Default property is: 
ThisItem.Commitment

Hoping for your kind assistance.

Thank you.
I have the same question (0)
  • v-bofeng-msft Profile Picture
    on 03 Jun 2024 at 09:35:51
    Re: Clear data in text input when I click cancel / submit button

    Hi @angelica00_ ,

     

    Could you please describe the difference between ‘text’ and ‘text input’? It seems that ‘text input’ has already been reset.

    vbofengmsft_1-1717408054804.png

     

     

    Best Regards,

    Bof

  • angelica00_ Profile Picture
    56 on 03 Jun 2024 at 08:57:28
    Re: Clear data in text input when I click cancel / submit button

    it clears the text but the text input remains. is it possible if the text input is also clears/remove?

    angelica00__0-1717405023664.png

     

  • v-bofeng-msft Profile Picture
    on 03 Jun 2024 at 08:54:25
    Re: Clear data in text input when I click cancel / submit button

    Hi @angelica00_ ,

     

    Please set the textinput control's Reset property to:

    ResetControl

    Add a button and set it's OnSelect property to:

    Set(ResetControl,false);Set(ResetControl,true);

    Click the button and the value in textinput will be reset.

     

    Best Regards,

    Bof

  • angelica00_ Profile Picture
    56 on 03 Jun 2024 at 08:52:33
    Re: Clear data in text input when I click cancel / submit button

    Hi Sir, 

    Where can I find the datacard? is it same w/ the gallery?

  • anandm08 Profile Picture
    1,936 Super User 2024 Season 2 on 03 Jun 2024 at 08:48:53
    Re: Clear data in text input when I click cancel / submit button

    hi @angelica00_ ,

    try this formula

    Reset(your_datacard_name)

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Telen Wang – Community Spotlight

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

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 started
Loading complete