Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.

How to disable a TextField base on other Checkboxes?

Avatar

Former Community Member

I want to disable this TextField based on what the user has checked previously on the Checkboxes. Will someone show me how this is done in Live Cycel Designer ES 8.2?

Thank you.

2 Replies

Avatar

Former Community Member

On the change event of the checkboxes and assuming that it has been setup using the defaults (0 is off and 1 is on), enter this javascript code:

if (this.rawValue == 1){

     TextFieldName.access = "readOnly"

} else {

     TextFieldName.access = "";

}

Paul