Planet PDF Forum Planet PDF Forum
  New Posts New Posts RSS Feed - Issue Populating PDF Checkbox via VBA
  FAQ FAQ  Forum Search   Register Register  Login Login


Hi, welcome to the Foxit Planet PDF Forum. If you have PDF or Adobe Acrobat questions then the right place to ask them is here, in this forum.

Issue Populating PDF Checkbox via VBA

 Post Reply Post Reply
Author
MeleaB View Drop Down
New Member
New Member
Avatar

Joined: 18 Nov 2016
Points: 1
Post Options Post Options   Quote MeleaB Quote  Post ReplyReply Direct Link To This Post Topic: Issue Populating PDF Checkbox via VBA
    Posted: 18 Nov 2016 at 12:33am
Hello.
 
I would be most grateful if anyone could shed some light on this issue as I have spent hours and hours on it, as well as combing through forums. I'm sure it has a very simple solution but I haven't solved it!
 
I had written VBA code that successfully populated an IRS form (1095c 2015) from Excel data. This included form fields that excepted text and numerical data as well as checkboxes.
 
e.g.
The form field with name: "topmostSubform[0].Page1[0].EmployeeName[0].f1_002[0]" is given a value for the employee's name, such as "John Smith"
The form field with name: "topmostSubform[0].Page1[0].Line17[0].c1_011[0]" is a checkbox which is given a value of "1" or "0"
 
However, when trying to perform the same task on the 2016 version of the same form, it is not allowing me to populate any of the checkboxes, although I can still populate the other fields with no problem. Some of the form names are slightly different in the 2016 version, but my code has been updated to reflect this.
 
So, if I now try to populate the same field names shown above (which exist in the 2016 version with the exact same names):
The form field with name: "topmostSubform[0].Page1[0].EmployeeName[0].f1_002[0]" populates fine, just as it did before.
However the checkbox form field with name: "topmostSubform[0].Page1[0].Line17[0].c1_011[0]" no longer populates, nor does any other checkbox.
 
The 2016 checkboxes still accept "1" and "0" as valid inputs (as I can read the field values from a PDF form that I fill in manually) yet I can not get them to accept the data when filled via the VBA code. I'm not too experienced with PDF forms but it seems there is ultimately something different from the checkboxes in the 2016 form from the 2015 form.
 
Any help or advice would be MUCH appreciated! Thank you!
 
------------------------------------------------------------------------------
 
1095c 2015 PDF: https://www.irs.gov/pub/irs-prior/f1095c--2015.pdf
1095c 2016 PDF: https://www.irs.gov/pub/irs-pdf/f1095c.pdf
 
 
PDFTK Data Dump of checkbox field "topmostSubform[0].Page1[0].Line17[0].c1_011[0]" when unchecked:
 
2015:
---
FieldType: Button
FieldName: topmostSubform[0].Page1[0].Line17[0].c1_011[0]
FieldFlags: 0
FieldJustification: Left
FieldStateOption: 1
FieldStateOption: Off
---
 
 
2016:
---
FieldType: Button
FieldName: topmostSubform[0].Page1[0].Line17[0].c1_011[0]
FieldFlags: 0
FieldJustification: Left
FieldStateOption: 1
FieldStateOption: Off
---

Windows 10
Office 365 Home
Back to Top
Sponsored Links


Back to Top
futglory View Drop Down
New Member
New Member


Joined: 02 Dec 2016
Points: 1
Post Options Post Options   Quote futglory Quote  Post ReplyReply Direct Link To This Post Posted: 02 Dec 2016 at 8:57am
fut packs For my part any fellow entails Fifa 17 Points Account came across an individual's sorts of solution, that was initially quite simply fearful, considering that when they get home any fellow placed it distinguish including departed. Nearly all That i was able to think was initially quite simply.
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 11.10
Copyright ©2001-2017 Web Wiz Ltd.

This page was generated in 0.031 seconds.