Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

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

Posted on 2015-01-30
2
Medium Priority
?
70 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 1500 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

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Question has a verified solution.

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

The ability to edit PDF documents can be useful, however it may not be a straight forward process. Many non-technical people don't realise that a PDF document is basically an image rather than a text file, even if it contains nothing but text. If…
Have you ever come up with a need of emailing only few pages of PDF file to one of yourfriend or colleague, instead of whole Adobe file? If yes, then surely you have face problems in doing that! Read this section as I have suggested multiple solutio…
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …
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…
Suggested Courses

636 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