Solved

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

Posted on 2015-01-30
2
68 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

One of the questions I get asked again and again is how to validate a field value in an AcroForm with a custom validation script. Adobe provided a lot of infrastructure to do that with just a simple script. Let’s take a look at how to do that wit…
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 convert an image-only PDF file into a PDF Searchable Image file, that is, a file with both the image (typically from scanning) and text, which is created in an automated fashion with Optical Character Recognition (OCR) …
We often encounter PDF files that are pure images, that is, they do not have text characters, but instead contain only raster graphics. The most common causes of this are document scanning software and faxing software/services that create image-only…

717 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