Do you own a Debenu Quick PDF Library 12/11/10/9/8/7? Upgrade to Debenu Quick PDF Library 13!

Foxit Quick PDF Library

Frequently Asked Question:

Return to FAQ Index

Javascript access form fields

Question

Hi there

Is there a possiblity to access pdf form fields with javascript? I would like to create a pdf form with quickpdf library and include a javascript that reacts on user input, e.g. if the value in textfield1 is bigger than 20 then insert into textfield2 60.

borderline: how can a access and sett form fields?

I tried using qp.setFormFieldJavaScript() but I don't know how to access a field value. Could please someone provide me with an example?

would appreciate it

regards tom

Answer

Yes, it is possible to interact with form fields using JavaScript in PDF. But all you will use Quick PDF Library for is inserting the JavaScript into the PDF. To know how to interact with form fields using JavaScript you will need to study the JavaScript for Acrobat API Reference.

If you search for "acrobat javascript api" on Google you will find some samples and tips.


© 2015 Debenu & Foxit. All rights reserved. AboutBuyContactBlogNewsletterSupportFAQProduct UpdatesForum