writing value to a checkbox

writing value to a checkbox

Forum member · Nov 11, 2010
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

Re: writing value to a checkbox

Support · Nov 11, 2010
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.