Expand my Community achievements bar.

SOLVED

Locking Field

Avatar

Level 1

Could someone let me know how I can lock a field after exiting it. I am not familiar with programing so any help would be appricated.

1 Accepted Solution

Avatar

Correct answer by
Level 10

Hi,

In the exit event of the field, place the following JavaScript:

this.access = "readOnly";

Please note that this will lock the field and the user will not be able to go back and edit the data or put in new data. This may not be the behaviour the user expects.

Hope that helps,

Niall

View solution in original post

2 Replies

Avatar

Correct answer by
Level 10

Hi,

In the exit event of the field, place the following JavaScript:

this.access = "readOnly";

Please note that this will lock the field and the user will not be able to go back and edit the data or put in new data. This may not be the behaviour the user expects.

Hope that helps,

Niall