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 / How to prevent my form...
Power Apps
Answered

How to prevent my form from resetting

(0) ShareShare
ReportReport
Posted on by 38

Hi,

 

I have a page with two forms, let's call them the Form 1 and Form 2.

 

Basically, the way they work is that any information in the data cards in Form 1 are reflected in their identical data cards in Form 2, with one exception (The reference data card).

 

The way I have done this is by utilising a patch in the Items section in Form 2 as per below.

 

Patch(Defaults('CDR Tracker 1'),{Urgent:Form1.Updates.Urgent,
Requestor:Form1.Updates.Requestor,
Office:Form1.Updates.Office,
DateofRequest:Form1.Updates.DateofRequest,
Status:Form1.Updates.Status,
DateDue:Form1.Updates.DateDue,
Source:Form1.Updates.Source,
Comments:Form1.Updates.Comments})

 

I have one data card value called Reference, which is to be unique to each form, so the Reference for form 1 and 2 will not be identical although all other values will.

 

So, if I add the Reference to Form 1 and then Form 2, but then for whatever reason change any of the above values i.e Urgent in Form 1, then the Reference in Form 2 will reset and clear, and I have to retype it. 

 

I was just wondering if there is any way to prevent this happening.

Categories:
I have the same question (0)
  • Verified answer
    v-jefferni Profile Picture
    Microsoft Employee on at

    Hi @Cargue96 ,

     

    Do you want that value of Reference in Form2 don't change when you change any of the values in Form1?

     

    Based on your description, I have made a simple test for your reference.

    You could set the OnChange property of The TextInput in Reference DataCard to “Set(Ref,Form2.Updates.Reference)”, then add “Reference:Ref ” to your formula for Form2.

    vjefferni_0-1667379969882.png

    vjefferni_1-1667379969897.png

     

    Best regards,

     

     

  • Cargue96 Profile Picture
    38 on at

    Hi,

     

    Many thanks for this.

     

    Apologies for the late response, I have tried to use solution but get the following error message

     

    Cargue96_0-1668526043953.png

     

     

    Any reason why this would occur? 

  • Cargue96 Profile Picture
    38 on at

    Hi,

     

    I know this was a long time ago but any reason why I get the below error when attempting this.

     

    Hi,

     

    Many thanks for this.

     

    Apologies for the late response, I have tried to use solution but get the following error message

     

    Cargue96_0-1678290642725.png

     

     

     

     

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

#2
11manish Profile Picture

11manish 209 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 179

Last 30 days Overall leaderboard