Expand my Community achievements bar.

How to create 2/3 dropdown lists

Avatar

Former Community Member

How to create 2/3 dropdown lists that are linked.  The first one answered drives the answer for the second or thrid dropdown box.

Also can I wrap text in a dropdown list?

Thanks in advance.

4 Replies

Avatar

Level 9

Yes, you can do that. Depending upon the selection made in any dropdown, by the use of change/exit event you can always use addItem() functionality to add items in dependent dropdown.

Thanks,

Bibhu.

Avatar

Former Community Member

Hi Bibhu,

I'm new to livecycle and have done some forms and used Action Builder but this dropdown list is beyound me. I have tried to use a data table but not sure what I am doing.  Please can you help?

Thanks in advance,

Tara

Avatar

Former Community Member

This is the scripting I tried to use  in the first dropdown list and it doesn't work, any HELP would be appreciated.

form1.#subform[0].DropDownList1::exit - (JavaScript, client)

if(this.rawValue=="a")

{

DropDownList2a.presence = "visible";

DropDownList2b.presence = "hidden";

DropDownList2c.presence = "hidden";

}

else if (this.rawValue == "b")

{

DropDownList2a.presence = "hidden";

DropDownList2b.presence = "visible";

DropDownList2c.presence = "hidden";

}

else if (this.rawValue == "c")

{

DropDownList2a.presence = "hidden";

DropDownList2b.presence = "hidden";

DropDownList2c.presence = "visible";

}

Thanks in advance

Avatar

Employee

Here is a good example of dynamically populating objects with choicelists, in this case it is a listbox, but it could be applied to dropdownlist boxes also: http://blogs.adobe.com/formfeed/2009/10/populating_list_boxes_1.html

http://blogs.adobe.com/formfeed/2009/10/populate_a_listbox_from_a_web.html

KJ