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!

Debenu Quick PDF Library - PDF SDK Community Forum Homepage
Forum Home Forum Home > For Users of the Library > I need help - I can help
  New Posts New Posts RSS Feed - Is checkbox form field checked or not?
  FAQ FAQ  Forum Search   Register Register  Login Login

Is checkbox form field checked or not?

 Post Reply Post Reply
Author
Message
atishin View Drop Down
Beginner
Beginner
Avatar

Joined: 17 Mar 11
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote atishin Quote  Post ReplyReply Direct Link To This Post 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!
Back to Top
atishin View Drop Down
Beginner
Beginner
Avatar

Joined: 17 Mar 11
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote atishin Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 11.01
Copyright ©2001-2014 Web Wiz Ltd.

Copyright © 2017 Debenu. Debenu Quick PDF Library is a PDF SDK. All rights reserved. AboutContactBlogSupportOnline Store