Please note that the above example work with the Adobe Repository. If you want to read the files from File System, use "File Utilities->Find" service.To find sub-folders, you should make a recursive to call to the same service with the sub-folder name.
This should work.. var sDate = BackgroundInformation.Background.CheckingDateStart.value.date.value; var eDate = BackgroundInformation.Background.CheckingDateEnd.value.date.value; xfa.host.messageBox("eDate:"+eDate+" sDate:"+sDate); if(sDate > eDate){ valid = false; fieldName...
I hope ORG is a field in your form. Try to change you code slightly as below and verifyt the output.ContractInfo.AgreementDetails.Org.rawValue.substring(0,1) != "6"Hope this will resolve your issue.Nith
postSubmit event will not wait for the response from the Server. It will trigger immeidiatelly once the data gets submitted through HTTP POST.Why don't you try initialize/layout:ready event of the form to make your modifications?Nith
If your PDF documents are "XFA-based forms", you can convert them into XDP files using "PDF Utility" service.Otherwise, you have no other choice other than creating new templates from scratch.Thanks,Nith