Solved

Have PDF form recognize local machine -- else disable form fields.

Posted on 2015-01-30
2
63 Views
Last Modified: 2015-02-05
In the past few days, a staff member (Let's name him Mr. Smith) from my unit has done nothing but frustrate both me and my supervisor in regards to the proper way of filling up our time off request form.  While its none of my business, with all of Mr Smith's time off requests, one would think he'd be an expert in filling up our time off form by now.  

Managerial problems aside. . . We've decided to create a form strictly for FMLA.

My dilemma: on this new form I'm creating, I want my supervisor to be able to approve multiple entries without having to affix her signature on each line, since it's tedious. I've decided that instead of signatures, when she clicks on either approved or (not) approved, the approval date gets populated.  To prevent people from falsifying approvals, I want the form to recognize the machine the approvals are being made, either by machine or by Windows Login ID.  While I can do CurrentUser() on VBA,  after doing research found out that unlike MS Office docs, identity.loginName is privileged scripting.

Instead of having to install the .js file on everyone's PCs to recognize the current user and catch the perpetrator trying to fake approvals, I thought it would be easier (and more ethical) for the form to just disable the fields when someone does attempt to.  I plan on installing the .js file on the PCs that are authorized to approve time offs.

I know basic Adobe form making (ooh textboxes. . .  buttons!) and small basic Java Scriplets.   I have some basic experience with LiveCycle. But I do not know where to start in regards to creating a js file, nor how to have the PDF form search for and require it for the fields to be enabled.

 As for Mr. Smith we're just basically waiting for him to finish his probation and finally give him the boot on the exit interview.
0
Comment
Question by:johnnieborgie
2 Comments
 
LVL 44

Accepted Solution

by:
Karl Heinz Kremer earned 500 total points
ID: 40581507
The only secure way to approve a form is by using a digital signature, you may want to look into that. This also would lock the form the way it was at the time the signature was applied.

If you want to stay away from an electronic signature, you can do what you proposed by adding a folder level script that e.g. defines a function to return the login ID of the user. During application initialization (which means in a folder level script), you do have access to the identity information, so you can create a trusted function that returns that.

To find out where such a folder level script goes, see this tutorial: http://khkonsulting.com/2010/12/acrobat-javascripts-where-do-they-go/

Do you have access to the Acrobat SDK? If not, that's essential for working with Acrobat's JavaScript:

http://help.adobe.com/livedocs/acrobat_sdk/11/Acrobat11_HTMLHelp/wwhelp/wwhimpl/js/html/wwhelp.htm?&accessible=true
0
 

Author Comment

by:johnnieborgie
ID: 40592220
Hi Karl,

Sorry for not replying back soon. . . I'm pressed on time with another project so I'm temporarily scrapping this one,  Thank you for your insight, will consider them once I've picked up this project again.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article is in response to a question here (http://www.experts-exchange.com/Other/URLs/Q_28283850.html) at Experts Exchange. The Original Poster has a scanned signature and wants to make the background transparent so that the signature may be pl…
Update 21-May-2015: I temporarily removed the source code to make major changes to the program. Regards, Joe In a previous Experts Exchange article, How To Rename-Move a Batch of PDF Files Based on Contents of the Files (http://www.experts-exchan…
In this video, we show how to perform Bates Numbering/Stamping of PDF documents using Power PDF Advanced, the newest product from the Document Imaging division of Nuance Communications. There are two editions of Power PDF — Standard and Advanced. Th…
In this sixth video of the Xpdf series, we discuss and demonstrate the PDFtoPNG utility, which converts a multi-page PDF file to separate color, grayscale, or monochrome PNG files, creating one PNG file for each page in the PDF. It does this via a c…

948 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now