I am in the process of creating an application that will NOT show the Submit button as "Active" unless the form has been properly filled out. I also am using the button to submit the inputted data to a SharePoint List.
I've used the following code:
Under DisplayMode:
If(And(IsEmpty('Form1-4_1'),!IsEmpty('Form1-4_1')),DisplayMode.Disabled, DisplayMode.Edit)
Then under OnSelect:
Patch(
'the real Power Apps Tester',
'the real Power Apps Tester';
'Form1-1_1'.Updates,
'Form1-3_1'.Updates,
'Form1-4_1'.Updates,
'Form1-5_1'.Updates
);
Clear(valPass);
ResetForm('Form1-1_1');
ResetForm('Form1-3_1');
ResetForm('Form1-4_1');
ResetForm('Form1-5_1');
NewForm('Form1-5_1');
Navigate(Screen1);
Notify(
"Thank you for completing this form. We look forward to working with you!", NotificationType.Success, 4000);
Currently I cannot get it to function properly but it looks like the logic is there?
Current Error:
"Invalid argument type (Control). Expecting a Table value instead."
Thank you in advance for your help!