Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.
SOLVED

how to change property of field type

Avatar

Level 3

Dear All.

I'd like to change property of field type from User entered - Optional to Readonly conditionally.

tired it as folloing, but the field is still editable.

please let me know how to change it.

case1 :

      Row1_Num1.lockType = "readOnly";
     

case2:

      Row1_Select.readonly = true;

1 Accepted Solution

Avatar

Correct answer by
Level 10

Try to use TextField1.access = "readOnly";

Jasmin

View solution in original post

2 Replies

Avatar

Correct answer by
Level 10

Try to use TextField1.access = "readOnly";

Jasmin