RetrieveFormFields returns 0 fields on Blazor SfPdfViewer but js interop call can retrieve fields

I've written a JS function to get the form fields from the loaded document

JS:

let pdfViewer = document.getElementById('pdfViewer1').ej2_instances[0];
let fields = pdfViewer.retrieveFormFields();

This returns the fields.


In the razor.cs when I try it,

var fields = await _pdfViewerFormFill.RetrieveFormFields();

There are no fields.


This is a problem since when I call _pdfViewerFormFill.ExportFormFields() the fieldsData don't have any values.


7 Replies

JE jeanux March 28, 2022 03:53 PM UTC

Thanks Shamini



SK Shamini Kiruba Sobers Syncfusion Team March 28, 2022 07:19 PM UTC

Hi Chris,


We were able to reproduce the issue “RetrieveFormFieldsAsync() method is not working”. We will validate the issue and update further details on March 30, 2022.


Regards,

Shamini



SK Shamini Kiruba Sobers Syncfusion Team March 30, 2022 01:54 PM UTC

Hi Chris,


We have validated the issue “Form Fields are not retrieved properly in RetrieveFormFieldsAsync method” and logged it as a defect. The fix for the issue will be available in our upcoming weekly NuGet release on April 20, 2022. You can track the status of the issue through the following link.


Feedback: https://www.syncfusion.com/feedback/33788/form-fields-are-not-retrieved-properly-in-retrieveformfieldsasync-method


Regards,

Shamini



JE jeanux March 31, 2022 12:44 PM UTC

Hi Shamini,


I get an Access Denied page when I try to navigate to that page.


Thanks.



SK Shamini Kiruba Sobers Syncfusion Team April 1, 2022 06:42 AM UTC

Hi Chris,


Sorry for the inconvenience. We have changed the feedback’s visibility to the public. You can access it now.


Regards,

Shamini



SK Shamini Kiruba Sobers Syncfusion Team April 21, 2022 07:23 AM UTC

Hi Chris,


Sorry for the inconvenience. The fix was not included in our latest weekly NuGet release. However, we will include the fix in our upcoming weekly NuGet release without further delay on April 27, 2022.


Regards,

Shamini



SK Shamini Kiruba Sobers Syncfusion Team April 27, 2022 03:20 PM UTC

Hi Chris,


We have fixed the reported issue and the fix for the reported issue was included in our latest weekly release v20.1.0.51. Kindly upgrade to that version to get the issue resolved.

   

Packages:   

   

Blazor Client    

https://www.nuget.org/packages/Syncfusion.Blazor/   

Blazor Sever   

https://www.nuget.org/packages/Syncfusion.Blazor.PdfViewerServer.Windows   

Service side package      

ASP.NET Core :      

https://www.nuget.org/packages/Syncfusion.EJ2.PdfViewer.AspNet.Core.Windows/ 
https://www.nuget.org/packages/Syncfusion.EJ2.PdfViewer.AspNet.Core.Linux/       

https://www.nuget.org/packages/Syncfusion.EJ2.PdfViewer.AspNet.Core.OSX/      

       

ASP.NET MVC:      

https://www.nuget.org/packages/Syncfusion.EJ2.PdfViewer.AspNet.Mvc5/      

https://www.nuget.org/packages/Syncfusion.EJ2.PdfViewer.AspNet.Mvc4/      

  

CDN: http://cdn.syncfusion.com/ej2/20.1.51/dist/ej2.min.js
   

https://cdn.syncfusion.com/ej2/20.1.51/material.css


Regards,

Shamini


Loader.
Up arrow icon