Expand my Community achievements bar.

Guidelines for the Responsible Use of Generative AI in the Experience Cloud Community.
SOLVED

Drop-down menu: lock after choice is made?

Avatar

Former Community Member

Is it possible to lock the choice in a drop-down menu after it is made, so when the document is saved and then opened again, the choice cannot be changed?

LC ES2 9.0.0, Win 7

1 Accepted Solution

Avatar

Correct answer by
Level 10

You could put something like the following on the initialize event of the field - the field will remain open until the file is saved with a value in the field, if there is no value the field will remain open when the file is saved and opened.

//form1.subMain.DropDownList1::initialize - (JavaScript, client)

if (!this.isNull){

this.access = "readOnly";

}

View solution in original post

3 Replies

Avatar

Correct answer by
Level 10

You could put something like the following on the initialize event of the field - the field will remain open until the file is saved with a value in the field, if there is no value the field will remain open when the file is saved and opened.

//form1.subMain.DropDownList1::initialize - (JavaScript, client)

if (!this.isNull){

this.access = "readOnly";

}