Hi,
I am wanting to validate that all the required fields are filled in prior to updating a form which is using Patch to update. I can get it working fine if I sumitform as it seems the validation is built-in to the submit form but I cannot use submit form as it resets all my tabbed pages which are based off the same record and is not an option.
I want to Patch the form - Patch('Secure Print Assessments',First(Filter('Secure Print Assessments', ID=CustomerGallery.Selected.ID)),GAForm.Updates)) - this update works fine but how do I validate it first?
I have found Validate( Scores, EditRecord, Gallery.Updates ) but I do not know what the EditRecord would be??? If I use Validate ('Secure Print Assessments', EditRecord, GAForm.Updates) it says the Validate has syntax errors - specifically on EditRecord but I do not know how to reference the current record I am trying to validate. I tried variations of ID=CustomerGallery.Selected.ID instead of EditRecord but no luck.
Also if I was to get past this would I then need to check if the result is blank to go ahead with the patch of will the validate stop any commands further on?
All I want to do is check the datacards are filled in - I have many of them so I do not want to jhave to reference each and everyone of them to check if the field is empty - that would be a nightmare.
Any ideas?