Skip to main content

Notifications

Power Apps - Building Power Apps
Unanswered

Editing record is showing form as valid even though form was reset

(0) ShareShare
ReportReport
Posted on by 634

I am using a multiple forms on a screen. A master form and 3 other forms that make up the data that goes into the master. All of these forms are using a variable for Items(glbFormData). Most fields in these forms are custom fields. Now, if I go to edit a record and I reset the forms, whether it is the 3 child forms or the master or all 4, the form fields reset but the values remain behind somewhere. Same thing happens if I try and create a new record. I know the data is there because I can see the data still populating the master form and I can see the datacard's Default or Update values when I drop a label on the page to show those values. another clue is that the forms are showing as valid even though the required fields are reset to blank. One other thing to note is that  the glbformData variable is empty . Where is this data being stored and how do I clear it?

Categories:
  • Future_Vision Profile Picture
    Future_Vision 634 on at
    Re: Editing record is showing form as valid even though form was reset

    @RandyHayes 
    Sorry for the delay, if there is any on my end. Trying to get back to this issue but I am having issues with the app's UI loading inside of the editor in PA for Teams.

  • Future_Vision Profile Picture
    Future_Vision 634 on at
    Re: Editing record is showing form as valid even though form was reset

    @RandyHayes 
    One way is I check the variable here.

    Future_Vision_0-1623352056725.png

     

    I've also put a label in the app and set the text to one of the values still hanging around. For example Brand1 has a value but when I try and print that to the label using glbFormData.Brand1 it is blank.

  • RandyHayes Profile Picture
    RandyHayes 76,287 on at
    Re: Editing record is showing form as valid even though form was reset

    @Future_Vision 

    Ah yes...I recall that now (too many formulas in my head).

     

    So let's explore my other question - "How are you verifying that the glbformData is empty? "

     

  • Future_Vision Profile Picture
    Future_Vision 634 on at
    Re: Editing record is showing form as valid even though form was reset

    @RandyHayes 
    Mostly. We did a little extra to the master to allow for copying a record and submitting as a new record.

    If(varCopy=true, Patch(glbFormData, Form1.Updates, Form2.Updates, Form3.Updates, {crfeb_trackinguid:Blank()}), Patch(glbFormData, Form1.Updates, Form2.Updates, Form3.Updates))

     

  • RandyHayes Profile Picture
    RandyHayes 76,287 on at
    Re: Editing record is showing form as valid even though form was reset

    @Future_Vision 

    I still have your other posts on my tracking system to follow up on....this seems related to those. So, perhaps we can pick up here.

     

    The form will not retain the data.  This is all going to be dependent on the glbFormData.  How are you verifying that the glbformData is empty?  If the EditForm shows the Default value, that would be coming directly from the Item record of the EditForm.  Your child form Item properties should be glbformData  and your Master form should be Patch(glbformData, form1.Updates, form2.Updates, form3.Updates)

    Is that where you are?

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

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,434

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,722

Leaderboard