Do you own a Debenu Quick PDF Library version 7, 8, 9, 10, 11, 12, 13 or iSEDQuickPDF license? Upgrade to Debenu Quick PDF Library 14 today!
![]() |
Is checkbox form field checked or not? |
Post Reply
|
| Author | |
atishin
Beginner
Joined: 17 Mar 11 Status: Offline Points: 2 |
Post Options
Thanks(0)
Quote Reply
Topic: Is checkbox form field checked or not?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!
|
|
![]() |
|
atishin
Beginner
Joined: 17 Mar 11 Status: Offline Points: 2 |
Post Options
Thanks(0)
Quote Reply
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...
![]() |
|
![]() |
|
Post Reply
|
|
|
Tweet
|
| Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |
Copyright © 2017 Debenu. Debenu Quick PDF Library is a PDF SDK. All rights reserved. About — Contact — Blog — Support — Online Store