Issues with Checkboxes Importing Options

Good day!

When working with the PDF Viewer, there are some inconveniences we have found regarding related Checkboxes.

Using the provided sample PDF, the following exercise can be performed:

  1. Load the PDF using the Load method on the Controller.
  2. Select "Option C" from the Checkboxes (Input2).
  3. Save the Form using ExportFormFields method in Controller.
    The extracted JSON would be as expected: "{"Input1":"Off","Input2":"3","Input3":"-","Input4":"-"}"
  4. 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.
  5. The selected checkbox won't show up as selected to the User.
Is it possible to use multiple checkboxes with different values within SyncFusion?

We use checkboxes instead of radio buttons for this scenario because once one of the radio buttons in the group has been selected (such as with Input1), there’s no way of unselecting all the radio buttons in the group. For example, if there’s a radio button for Male and another one for Female, and the user has clicked on one of the radio buttons, the user cannot have both unselected any longer, one button will always remain selected. This represents a problem in self-administered questionnaires.

To go around this issue with the radio buttons, we have traditionally used checkboxes (which are joined into a single response set by naming them with the same variable name or group name in PDF forms. When added manually with Adobe Acrobat, after assigning a repeated variable name Acrobat adds '#[n]' at the end of each variable name. Whenever the user marks one of the checkboxes, all other checkboxes in the set automatically are unselected. When saved, the value stored is that of the selected checkbox. And the added benefit, if the user wants to remove a selection from this group, they can simply select the already ticked checkbox to remove the tick mark. This will send the value "Off", indicating that the User didn't perform any selections for that group.

Can you suggest how we can make SyncFusion show up and correctly preserve the value in this type of field?


Attachment: TestInputs_7d205fa6.zip

7 Replies 1 reply marked as answer

DM Dhivyabharathi Mohan Syncfusion Team April 9, 2021 04:48 PM UTC

Hi Radames, 
 
We were able to reproduce the reported issue. We will analyze further and provide details on April 13th, 2021. 
 
Regards, 
Dhivya. 



DM Dhivyabharathi Mohan Syncfusion Team April 13, 2021 01:16 PM UTC

Hi Radames, 
 
We have reported the issue to our internal team. We will analyze further and provide details on April 15th, 2021. 
 
Regards, 
Dhivya. 



DM Dhivyabharathi Mohan Syncfusion Team April 15, 2021 05:34 PM UTC

Hi Radames, 
 
Sorry for the inconvenience caused. 
Due to complexities in this reported issue, we are still working on this issue “CheckBox field values are not imported properly with exported data" and we will update the further details for this issue on April 19th, 2021. 
 
Regards, 
Dhivya. 



DM Dhivyabharathi Mohan Syncfusion Team April 19, 2021 04:14 PM UTC

Hi Radames, 
 
We confirmed that the issue with “Import/export of form field not working properly” as a defect, we will fix and update the patch for this issue by May 3, 2021.  
 
Note: Kindly update the product version to update the patch as promised.  
 
Regards, 
Dhivya. 



DM Dhivyabharathi Mohan Syncfusion Team May 3, 2021 11:10 AM UTC

Hi Radames, 
 
We have resolved the issue and provided the patch for the same in 19.1.0.54 version. Kindly replace the provided assembly in your sample. However, we will include the fix in our volume 1 SP release which will be available in the May 2021 tentatively. 
  
 
 
HTTP Link 
HTTP Link(Assemblies) 
HTTP Link(Nuget) 
 
 
  
Kindly try this and revert us, if you have any concerns. 
 
 
Regards, 
Dhivya. 
 


Marked as answer

RA Radames Acosta May 27, 2021 07:10 PM UTC

Hi Dhivyabharathi,

Apologies for not answering earlier, but it wasn't until this week that I had the opportunity to check back on this issue.

Fortunately, I was able to download the latest version and the aforementioned issue was fixed! Had no problems when re-rendering the PDF and preserving the checkbox input status.

Thank you so much for all your effort in the provided support.


DM Dhivyabharathi Mohan Syncfusion Team May 28, 2021 07:00 AM UTC

Hi Radames, 
 
Thank you for your update. We are glad to know that the reported issue is resolved. 
 
Regards, 
Dhivya. 


Loader.
Up arrow icon