Print Page | Close Window

Is checkbox form field checked or not?

Printed From: Debenu Quick PDF Library - PDF SDK Community Forum
Category: For Users of the Library
Forum Name: I need help - I can help
Forum Description: Problems and solutions while programming with the Debenu Quick PDF Library and Debenu PDF Viewer SDK
URL: http://www.quickpdf.org/forum/forum_posts.asp?TID=1774
Printed Date: 04 Apr 26 at 4:56PM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: Is checkbox form field checked or not?
Posted By: atishin
Subject: Is checkbox form field checked or not?
Date Posted: 17 Mar 11 at 1:51PM
I am trying to determine programmatically if the form field of a type "checkbox" is checked or not. And I can't find the method which can return that value. Does anyone know how to do that? Appreciate any help on this subject!



Replies:
Posted By: atishin
Date Posted: 21 Mar 11 at 8:35PM
I played with the functions a bit and figured out that each checkbox field actually has two sub-fields. Once with name "Off" and one with name "Yes". Name "Yes" actually reflects the name defined in PDF, which "Off" is pre-defined. So if checkbox is not checked, the field is always has Value "Off". Hence all you have to do is to check if field value is NOT EQUALS "Off" and then it means that check box actually checked.

Just in case if someone bumps into the same problem... Wink



Print Page | Close Window

Forum Software by Web Wiz Forums® version 11.01 - http://www.webwizforums.com
Copyright ©2001-2014 Web Wiz Ltd. - http://www.webwiz.co.uk