Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Beginner User: Locking (making read only after data entry) a single field after selecting date


Level 1

Hello, I am a beginner user trying to create a form using Adobe Livecycle.  One of the fields I would like to make read only/protect it/password protect it after a user selects the date.   For example, I select August 17, 2010 as the date. After I select it, I would like that field to be read only or protected so that another user can not edit it. 

I am a complete novice using XML or codes.  I'm learning alot from these boards though.    I know its probably simple.

Any help is appreciated.

0 Replies


Level 10

On the exit event of the field add this code:

if (this.rawValue != null){

     this.access = "readOnly"


This is Javascript so make sure you choose the javascript option.



Level 10

The attached locks a text field if the date chosen is "08-17-2010". If it is not the text field is accessible.

// - (JavaScript, client)

if (this.rawValue == "2010-08-17") { = "protected";


else { = "";