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 / 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
    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

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

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard