Expand my Community achievements bar.

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

second drop down list visible / invisible based on first drop down list choice

Avatar

Level 1

I am making a form using livecycle designer.  I want my second drop down list (Conference Room) to either be visible or invisible base on the choice of the first drop down list (Building).  I am new to Javascript and Livecycle.  I found this script online and modify base on my object name, but it does not work.  My script so far is

if (buildingdropdownlist.rawValue == "A") {
  ConferenceRoom.presence = "visible";
} else {
ConferenceRoom.presence = "invisible"; 
}

I am putting this script as a "formready" in the second drop-down list.  Is this where it is suppose to go?  Is the script correct?

2 Replies

Avatar

Level 10

As greenlnd34 said put it in the exit event...

Also "invisible" has a difference from "hidden", if your form is flowable and you set your field to invisible,  it will stay in the form but it will not be visible.

If you want it to disappear from the form and let the flow do the job, use "hidden"