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/Delete multiple ...
Power Apps
Answered

Clear/Delete multiple datacards

(0) ShareShare
ReportReport
Posted on by 20

I need help with deleting/clearing multiple data cards with different data types.

 

I have a form that uses patch function to duplicate the form. I am trying to build a button within the patched form to clear part of the form data cards. 

The data types I am trying to clear are: text, date, and choice. (text and date have value that has been patched from the other forms. And I am trying to clear these values with a button)

 

I was able to clear "choice" data values with using, 

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

However, it does not work on text and date data types. 

 

Any suggestions would be helpful. Thank y'all in advance!!

Categories:
I have the same question (0)
  • RJM07 Profile Picture
    801 on at

    That's is becasue the Text boxes arent controls.

    try using

    Reset(Textbox1);

  • torasan Profile Picture
    20 on at

    Do I use that for the button "On select"? or on the text data cards?

     

  • RJM07 Profile Picture
    801 on at

    The button onselect

  • torasan Profile Picture
    20 on at

    It still doesn't work.

    The way I have the form set up is:

    2 text boxes, 2 datepickers, and 5 choices.

    When I use "reset" function on button (On Select), it resets the 5 choices. Not the 2 textboxes and 2 datepickers. 

    They are all in the "Edit Form" Screen that connects to 2 other screens on powerapp. 

  • Verified answer
    RJM07 Profile Picture
    801 on at

    Check the Default setting for the text boxes, as  they will reset but will reset to the default value.

    As for the datepicker, I was struggling with the same issue last week however i did sort it... 

     

    Here's how:

    So here's my datepicker:

    RJM07_0-1680250931554.png

    Set the 'InputTextPlaceholder' to blank 

    Set the trash can OnSelect to 

    UpdateContext({varClearDate:false});
    Reset(CarrierEditRatingDateInput);
    UpdateContext({varClearDate:true});

    Set the Datepicker DefaultDate to 

    If(varClearDate=true,"",LookUp(Datasource,Datakey=Datakey,ResultToReturn))

    This SHOULD allow you to reset the text box nicely.

    Alternatively you can set the datepicker to 'Editable' which allows you to type in the date and delete it with the keyboard, however you lose a lot of validation from the textbox itself.

     

    I hope this helps 🙂 

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

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 320 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard