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?
@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.
@RandyHayes
One way is I check the variable here.
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.
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? "
@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))
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?