We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

How to Validate a field filled on an Acro Pdf file?

I have an Acro Pdf file that I read into an SfPdfViewer. Then I can fill in all the fields of the form. What I need to do, is OnSave, to find all the Required fields and confirm that they indeed have data. But when I loop through the fields I only have the initial values. How can I access the values that have been filled in just now so they can be validated?

1 Reply

SS Sathish Sivakumar Syncfusion Team June 19, 2019 12:08 PM UTC

Hi Will, 

We need to save the PDF document once we added the form fields using SfPdfViewer, then only we can retrieve the newly added values from the form fields present in PDF document. We have created a simple sample to achieve you requirement and it can be downloaded from below link. 

If our observation is different from your requirement, please share your requirement with more details and it will be helpful for us to assist you better. 


Live Chat Icon For mobile
Up arrow icon