Print Page | Close Window

Issue Populating PDF Checkbox via VBA

Printed From: Foxit's Planet PDF Forum
Category: Lets Talk PDF
Forum Name: General
Forum Description: This is for experienced PDF users. Here you can talk about any topics not set aside for Developers, Prepress and PDF Forms.
URL: http://forums.planetpdf.com/forum_posts.asp?TID=2079
Printed Date: 24 Nov 2017 at 2:42pm
Software Version: Web Wiz Forums 11.10 - http://www.webwizforums.com


Topic: Issue Populating PDF Checkbox via VBA
Posted By: MeleaB
Subject: Issue Populating PDF Checkbox via VBA
Date 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



Replies:
Posted By: futglory
Date Posted: 02 Dec 2016 at 8:57am
http://www.futglory.com/ - fut packs  For my part any fellow entails  http://www.fifaeasy.co/Fifa-17-Coins/ - 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.



Print Page | Close Window

Forum Software by Web Wiz Forums® version 11.10 - http://www.webwizforums.com
Copyright ©2001-2017 Web Wiz Ltd. - https://www.webwiz.net