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 / ResetForm when using S...
Power Apps
Unanswered

ResetForm when using Set(Current Value)

(0) ShareShare
ReportReport
Posted on by 18

Hello,

 

I am trying to hold values in my data cards when submitting while resetting others data cards.  I have that part working, but when I want to actually reset the entire form I am not able to get that to work.

 

Here is what I have on set in my form when submitting.

 

Screen OnVisible Property:

Set(currentCDCDelivery,Blank());
 
OnSelect Property for Submit Form:
SubmitForm(Form1);
Set(currentDelivery,Form1_1.LastSubmit.CDCDelivery);
NewForm(Form1);
 
Default Property for Card:
currentDelivery
 
My Reset Form Button is set to ResetForm(Form1).  This will not reset the data cards.  What can I do to be able to reset my form when I already have the Default set to CurrentDelivery.
 
Any help is appreciated.
Thanks,
Doug
Categories:
I have the same question (0)
  • WarrenBelz Profile Picture
    153,061 Most Valuable Professional on at

    Hi @Doug_Pirtle ,

    You have two Variables here - currentDelivery set when you submit the Form, which will be a field CDCDelivery value just saved

    SubmitForm(Form1);
    Set(
     currentDelivery,
     Self.LastSubmit.CDCDelivery
    );
    NewForm(Form1);

     and currentCDCDelivery, which I am not sure how it comes into this.

    Your Default currentDelivery on the Data Card should really be on the Control inside and will write the Default (currentDelivery in this case) to this control (as it does to all other controls on the Form) when the Form is reset.

    What is not working in all of that?

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

    Visit my blog Practical Power Apps

     

     

     

  • Doug_Pirtle Profile Picture
    18 on at

    Can you elaborate on this part of your response listed below.  I made all properties the same with currentCDCDelivery.  

     

    Your Default currentDelivery on the Data Card should really be on the Control inside and will write the Default (currentDelivery in this case) to this control (as it does to all other controls on the Form) when the Form is reset.

     

    Thank you.

  • WarrenBelz Profile Picture
    153,061 Most Valuable Professional on at

    Hi @Doug_Pirtle ,

    It needs to be the Default (or equivalent) on whatever control is inside the card you want updated.

  • WarrenBelz Profile Picture
    153,061 Most Valuable Professional on at

    Hi @Doug_Pirtle ,

    Just checking if you got the result you were looking for on this thread. Happy to help further if not.

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

    Visit my blog Practical Power Apps

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

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 319 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard