Hi,
There are several things you may need to change.
1) Do you have a single Edit Form? It appears that you do and the form is named "EditForm1". If you only have a single form, you don't need to be checking the "Required" properties of these DataCards:
Comment_DataCard3.Required && 'Action description_DataCard2'.Required && 'Achievement date_DataCard1'.Required
|
The "Required" property is a True/False value. If these are set to "True", then the form will handle the error checking for you. With the check you are doing, you are only checking that the fields are Required (and I am not sure if the code you have is correct for that) . You are not checking to see if the user entered any information for those fields. Let me know if you need more of an explanation.
2) Your Submit button should probably only have "SubmitForm(EditForm1)" in it. You should use other properties of the Form for everything else. The Form has "OnSuccess" and "OnFailure" properties.
In the OnSuccess, you would set it to:
OnSuccess runs if the data was able to be saved.
In the "OnFailure", you would set it to something like this which would be more generic to any error that occurs:
OnFailure runs if the data was not able to be saved.
This might not resolve the "Inefficient delay loading" as your "EditForm1" is referencing "DataTable1.Selected". For that, you may need to look at using a Global Variable to store the selected Item, and set your Form to reference that instead of "DateTable1.Selected"
If I've answered your question or solved your problem, please mark this question as answered. This helps others who have the same question find a solution quickly via the forum search. If you liked my response, please consider giving it a Like.
Thanks
-Mark