Expand my Community achievements bar.

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

Dropdown menu inactive until click...

Avatar

Level 1

How do I make a dropdown menu inactive until the option (checkbox) is clicked? Thanks.

3 Replies

Avatar

Former Community Member

Not sure I follow ....can you elaborate?

Paul

Avatar

Level 1

I have a form field with 2 checkboxes and 1 dropdown menu.

i.e.:

[1] Text

[2] Text  [dropdown menu]

I would like the dropdown menu to be inactive unless checkbox 2 is clicked.

I am new to Livecycle Designer and am trying to figure out how to use the Source Editor.

Thanks.

Avatar

Former Community Member

Ah ....now I understand. Assuming the checkboxes are called CheckBox1 and CheckBox2 and the DropList is called DDList1 then on CheckBox2 change event you would add this code:

if (this.rawValue == 1){

     DDList1.access = ""

} else {

     DDList1.access = "readOnly"

}

Also you woudl have the DDList set as readOnly to begin with.

Paul