CTdeveloping - PDF Creation, Editing, Form, Markup, and Security Software
Contact Us Contact CTdeveloping
Customer Login Log In
Products Services Downloads Support News Online Store
Support General Registration Help Knowledge Base FAQ User Forums Contact Us Documentation PDFtypewriter PDF Printer PDFconverter PDF to DOC PDF Text Reader
McAfee Secure sites help keep you safe from identity theft, credit card fraud, spyware, spam, viruses and online scams
CTdeveloping RSS Feed

Tips and Tricks for PDFtypewriter


Emulating Form Field Checkboxes using JavaScript

How to use pattern matching for form field verification

How to install PDFtypewriter for all users



Emulating Form Field Checkboxes using JavaScript

This tip is obsolete as PDFtypewriter now natively supports PDF checkbox form fields, but is a good JavaScript example.

Add a form field, call it checkbox1
Then unselect it, reselect it again, right click it and choose properties. Go to the "form field" tab. Click SHOW JAVASCRIPT OPTIONS. Select On Mouse Down from the drop down. Paste in the text:

var thisFormFieldValue = this.getField("checkbox1");
if (thisFormFieldValue.value == "X") {
thisFormFieldValue.value = "";
}
else {
thisFormFieldValue.value = "X";
}

(Note, change the "checkbox1" part to whatever you call your next form field, i.e. checkbox2. Basically this just has to reflect the form field name you gave the form field.)


How to use pattern matching for form field verification

See http://www.ctdeveloping.com/ctdeveloping/support/patternmatching.asp


How to install PDFtypewriter for all users

To install PDFtypewriter for all users, download the DEMO msi file from the CTdeveloping website. Place the msi file in your root C:\ directory (where C is the drive letter where Windows is installed.

Be sure that you are logged in as the Administrator on the computer.

Click START-> RUN. Then enter:

MSIEXEC.EXE /I C:\pdftypewriter.msi ALLUSERS=1

(where C is the letter of the drive where the pdftypewriter.msi file is now located after moving it)

Click OK. This will start the PDFtypewriter installer, putting the shortcuts and temp directories in place for all users, instead of just the current user.


Privacy Policy | Terms of Use
Webmaster
Last Updated: August 1 2008