I have a basic form that is connected to a sharepoint list. I have marked all the required fields as required and their cards do have the property of required equals true. Second screen shot shows the Submit button code. Not sure if that is correct or not but from examples found online, I believe that it should.
Current Behavior: When the submit button is clicked there is no error message and no red border applied. Form isn't submitted to the sharepoint list.
Expected Behavior: When the Submit button is clicked all required fields that aren't filled out should have an error message and red border. Form is not submitted.
@cha_cha That is actually prolly what happened. I had this open for a very long time and did a reboot over the weekend. I appreciate the advice and I am going to have to keep that in mind moving forward. Thank you!!
@Anonymous I would suggest that when you spend too long hours on the PowerApps, try to give yourself a break. And also close the whole browser and relaunch the editor again. Sometimes a cache refresh and brain refresh fixes a lot of issues in PowerApps.
I swear I tried that before and it didn't work, but now it is working. Thank you!!
Hello @Anonymous
Actually, you can just use the SubmitForm(Form3) directly.
Power Apps has a built-in function to check if all the required fields have values.
May I know why you are checking on whether the Form is valid? Cause the code you are using will never run because of Form3.Valid will always return false.
If(Form3.Valid,SubmitForm(Form3));