Good day,
In the past few days, we have been working with SyncFusion's PDF Viewer, which has greatly helped us with our business needs.
We have faced a slight issue with some of the fields embedded in our PDFs, and have noticed that most of them have to do with Dropdown lists that exist in our PDFs. Specifically, dropdowns which have labels and values that are different from each other won't work fully as expected.
I'm able to retrieve and save all document fields successfully, but here's an outline to illustrate our problem on the provided sample PDF:
- Load the empty Form to be filled using Load method in Controller.
- Select the values "Option 1" from the radio buttons (Input1), "Option Alpha" from the first Dropdown (Input3) and "Option Alex" from the second Dropdown (Input4) and submit the Form.
- Save the Form using ExportFormFields method in Controller.
The extracted JSON would be as expected: "{"Input1":"1","Input2":"Off","Input3":"1","Input4":"Option Alex"}" - Reload the PDF Viewer, load the Form again (as to simulate a new session interaction with the document) and retrieve the saved Form using ImportFormFields method in Controller.
- All inputs will be marked as expected with their corresponding values.
- Change radio button (Input1) to have "Option 2" selected.
- Save the Form again using ExportFormFields method in Controller.
The extracted JSON is now different from what is expected: "{"Input1":"2","Input2":"Off","Input3":"-","Input4":"Option Alex"}"
Input4 remains with its option selected (as it was expected, since it wasn't changed by the User, but Input3 loses its selected value and gets reset to the first item in its Dropdown.
Am I not allowed to use PDFs that have Dropdowns with values different than their labels? Am I missing any steps in between regarding form and data loading? Am I missing any other steps when submitting the form?
Thanks in advance for any support and guidance you can provide.
Attachment:
TestInputs_36ec4e1f.zip