I’m using AutoFiller to populate a PDF form, and it all works quite nicely but I’m having a little trouble with checkbox fields. The problem is that if the data I’m using to populate the checkbox (so it’s either checked or not checked) contains a space, the checkbox field doesn’t work. (It works fine if the data doesn’t contain a space.)
For example, say I have a checkbox field called:
“OpportunityStatus” and the expression to evaluate is “Closed”.
If my data table has:
DataTable dt = new DataTable(“Opportunities”);
DataRow dr = dt.NewRow();
dr[“OpportunityStatus”] = “Closed”;
When I use AutoFiller with this data and the field described, the checkbox will come out checked.
If, however, I change the data to:
dr[“OpportunityStatus”] = “Closed Won”, and make the corresponding change to the PDF form field (to evaluate to “Closed Won”), the checkbox field doesn’t come out checked.
Do you have a suggestion on how to get this to work?