Skip navigation
Currently Being Moderated

Setting field level security

Apr 10, 2012 3:02 PM

I have created a form in LiveCycle in which two fields (Header and an Image block) need to be editable by one user type (e.g. power user), but should not be changeable by the end users.  They will only be able to fill in other fields in the form.  So far I have only been able to set form level security.  Is there a way to apply security to just these two fields, perhaps requiring a password, so that the power user can update these two fields as needed?


Thanks for any ideas you might have!

  • Currently Being Moderated
    Apr 11, 2012 6:40 AM   in reply to PNS-Steve

    Hi Steve,


    I think you'll need to programm this using Javascript.


    However if you're using the LiveCycle Process Management module you can achieve this on the server side, and deliverying to the user only the form that he/she is able to fill in.



    Mark as:
  • Currently Being Moderated
    Apr 11, 2012 1:22 PM   in reply to PNS-Steve

    Hi Steve,


    You don't need to decline this project man! If you don't have the Javascript skills needed for the project, what if you outsource some parts?


    Please send me an email with more details:


    Regarding to this code snipet, you'd need to write a code in Javascript for XFA forms, the ones developed using LiveCycle.

    Mark as:
  • Currently Being Moderated
    Apr 12, 2012 8:55 AM   in reply to PNS-Steve

    Hey Steve, the problem with that code is that it's Acrobat JavaScript not LiveCycle.


    You can do what you need quite simply with app.response(), if you don't need anything too fancy. You can put it on a button click or I've also done it so you enter the password in a particular field that already exists on the form.


    So the power user opens the form, enters the password and edits and then saves the form and it's back to being protected.


    Put on the Click event of a button:

    var dialogTitle = "Enter Password";
    var reply = app.response("Enter password to edit this section.", dialogTitle);
    if (reply == "Password") {
         fieldName.access = "open";


    Or on the Exit event of a text field:

    if (this.rawValue == "Password") {
         fieldName.access = "open";


    Depending on the version of Acrobat (version 9 or later? not sure) you're targeting you can set the access at the subform level to control a bunch of objects or you could write a loop to run through a subform, or looking for fields with a particular name.

    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points