I am having a very odd behavior with my forms. Here is what I have.
Screen1
4 forms - Form4(master) and Form1, Form2, Form3
The OnReset for the Form4 form resets the first 3
ResetForm(Form1); ResetForm(Form2); ResetForm(Form3);
A submit button that is only editable(clickable) when Form1, Form2, and Form3 are valid
If(Form1.Valid && Form2.Valid && Form3.Valid, DisplayMode.Edit,DisplayMode.Disabled)
Now, the first time through the app everything works properly but if I try and add a new record the Submit button becomes active after getting through 3 of the 5 required fields in Form1. I have no idea why the others are validating. If I look at Form4 I see values in fields that should be reset. This is the code I am using on a temporary 'reset button' and the 'new' button.
//Rest button
UpdateContext({ShowPreview: false}); Set(glbFormData,Defaults('Tracking DB')); ResetForm(Form4)
//New button
Set(glbFormData, Defaults('Tracking DB')); ResetForm(Form4); Navigate('Build Tracking')
Any ideas why this is happening? This would probably solve another issue I've been having if I could understand why these From4 values are still around.