Hi!
I am working with the PDF viewer and am trying to save the PDF form data to a database, then retrieve and fill the PDF on document.load... I have tried using RetrieveFields and ExportFormFieldsAsObject for exporting, and UpdateFormFieldValue and ImportFormFields for importing, and can't seem to get a good match. ExportFormFieldsAsObject is giving weird unicode characters for the value of checkboxes, and UpdateFormFieldValue can't seem to handle radio buttons (or I'm doing it wrong). Is there a best practice for doing this?
Thanks,
Tony Elmquist
|
<body class="bootstrap5">
<button onclick="exportFormFieldsAsObject()">
Export form fields as object
</button>
<button onclick="importFormFieldsFromExportedObject()">
Import form fields from exported object
</button>
<div id='sample'>
<script>
var exportdata;
function exportFormFieldsAsObject(){
var viewer = document.getElementById('container').ej2_instances[0];
viewer.isSignatureEditable = true;
viewer.exportFormFieldsAsObject().then(function (value) {
exportdata = value;
console.log(exportdata);
});
}
function importFormFieldsFromExportedObject(){
var viewer = document.getElementById('container').ej2_instances[0];
viewer.importFormFields(exportdata);
}
</script>
</body>
|
The checkboxes and radio buttons don't work in that sample - and that's most of what I have to handle :P
Hi John,
We have validated and logged the defect report as “The checkboxes and radio buttons on the form fields are not imported correctly with the exported data”. The fix for the issue will be available in our upcoming weekly NuGet release on April 27, 2022.
There is a technical glitch in generating the feedback report and will update the link ASAP, once the glitch is resolved.
Regards,
Shamini
Hi John,
We have generated the feedback report. You can track the status of the issue through the following link.
Regards,
Shamini
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 May 11, 2022.
Regards,
Shamini
Sorry for the inconvenience. The fix was not included in our latest release. However, we will include the fix in our upcoming weekly NuGet release without further delay on May 25, 2022.
Regards,
Shamini
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 June 1, 2022.
Regards,
Shamini
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 June 8, 2022.
Regards,
Shamini
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 June 15, 2022.
Regards,
Shamini
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 June 22, 2022.
Regards,
Shamini
Hi John,
We have fixed the reported issue “The checkboxes and radio buttons on the form fields are not imported correctly with the exported data” and the fix for the reported issue was included in our latest weekly release v20.1.0.61. Kindly upgrade to that version to get the issue resolved.
Packages:
CDN Links:
https://cdn.syncfusion.com/ej2/20.1.61/dist/ej2.min.js
https://cdn.syncfusion.com/ej2/20.1.61/material.css
Regards,
Visvesvar k v