writing value to a checkbox

Skip Navigation LinksHome  /  Support  /  Forums  /  DynamicPDF CoreSuite for .NET (v5)  /  Re: writing value to a checkbox

DynamicPDF CoreSuite for .NET (v5) Forum

 Nov 11 2010 8:53 AM
I have a web form application that contains a series of checkboxes in the and the corresponding pdf template is using checkboxes as well.  The problem I am running into is using Document.Form.Fields["topmostSubform[0].Page3[0].AttachBBInverterPMPhotovoltaic[0]"].Value to write to the checkbox isn't working and I imagine it's because this call is passing in a string value to a template control that is looking for a boolean value.

How do I write to a pdf checkbox from my web application.

TIA,
Bill Youngman
 Nov 11 2010 12:29 PM
Posted by a ceTe Software moderator - Commonly asked question
Hello Bill,

In order to check the check boxes  and Radio buttons you will have to set its value to its ExportValue by accessing the field using its full name. The export value will be set by the one who has created the check box and radio buttons. You should know this export value to check the check box. Below is the code for it.

mergeDoc.Form.Fields["FomField Name"].Value = "Correct export value";
 
Please double check that you are using the correct export values to check the check boxes and radio buttons. You can know the export values using the Acrobat Professional.

Thanks,
ceTe Software Support Team.

All times are US Eastern Standard time. The time now is 2:31 AM.