pdffillerjs / pdffiller

Take an existing PDF Form and data and PDF Filler will create a new PDF with all given fields populated.
MIT License
286 stars 113 forks source link

prefilling check boxes and radio not working #61

Open mahiagit opened 7 years ago

mahiagit commented 7 years ago

I am providing the existed data to the Pdf form. All the text data is being nicely populated with the pdf filler but when going for the checkboxes or radio nothing is working out. Creating the data as below:

data = { "NAME":"Test", "Test CheckBox1":"Yes", "Test CheckBox2":true, "Test CheckBox3"":1, "Test CheckBox4 ":"On" }

Not any of the provided options/value for the checkbox is working . Kindly suggest the checkbox or radio is being shown as selected by providing prefilled data

maximilianschmidt commented 7 years ago

have you checked if the Export-Value of the checkbox is indeed one of the values you set? it might differ. check with adobe acrobat -> right click on the checkbox -> properties -> options -> export value.

mahiagit commented 7 years ago

Yes there was difference in the values. thanks @maximilianschmidt