Programmatically detect form fields
Moderators: PDF-XChange Support, Daniel - PDF-XChange, Chris - PDF-XChange, Sean - PDF-XChange, Vasyl - PDF-XChange, Ivan - Tracker Software, Stefan - PDF-XChange
-
- User
- Posts: 518
- Joined: Thu Dec 06, 2007 8:13 pm
Programmatically detect form fields
Is there any way to programmatically detect if a document has form fields defined or not?
-
- User
- Posts: 223
- Joined: Wed Aug 22, 2007 4:40 pm
Re: Programmatically detect form fields
Call RunJavaScript() with the script:
"this.numFields"
If the return value is greater than zero, there are form fields.
"this.numFields"
If the return value is greater than zero, there are form fields.
-
- Site Admin
- Posts: 7372
- Joined: Wed Mar 25, 2009 10:37 pm
Re: Programmatically detect form fields
Nice one ugradedeveloper, succinct and to the point. 

Best regards
Paul O'Rorke
PDF-XChange Support
http://www.pdf-xchange.com
Paul O'Rorke
PDF-XChange Support
http://www.pdf-xchange.com