These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

Dropdown List

libraboy
Registered: Dec 14 2007
Posts: 94

Hi,

Can someone please help me? I want to create a dropdown with text field disable when nothing is selected from the list.

Example: They have to select 1 in my dropdown list before they can be able to type in the next field. if nothing is selected the text field will be grayed out or disabled.

Thanks,

My Product Information:
LiveCycle Designer, Windows
pforms
Registered: Nov 17 2009
Posts: 87
Maybe something like this:

if (this.selectedIndex == 2){

TextField1.presence = 'visible';

TextField1.mandatory = "error";

TextField1.mandatoryMessage = "This field is mandatory!";

}

else {

TextField1.presence = 'hidden';

TextField1.mandatory = 'disabled';
libraboy
Registered: Dec 14 2007
Posts: 94
Hi,

Thank you for your response... I tried it and its not working

I wanna make dropdown list with the name of countries (e.i India, Canada, US, Italy) and If nothing is selected the text field beside it is grayed out. When you select one of the ff, the text will be enable.

Someone please help me :(
matka
Registered: Jun 26 2007
Posts: 11
Are you sure that you are using JavaScript and not Formcalc?
I think the sample above will work

------------
http://www.re-pdf.com

libraboy
Registered: Dec 14 2007
Posts: 94
Hi,

Want to create a two drop down.. First drop down choices will be the Countries and when you select one of those countries another drop down will have choices with the city.

Example:

First Dropdown will be Second dropdown will show
Canada Toronto
Edmonton
Vancouver and etc...

Please help!

Thanks :)
gkaiseril
Online
Expert
Registered: Feb 23 2006
Posts: 4308
Have you read Thom Parker's tutorial [url=http://www.acrobatusers.com/tutorials/2007/js_list_combo_livecycle/]Programming List and Combo fields in Acrobat and LiveCycle forms - Part 1[/url]. Make sure you read and download the LiveCycle section and file.

George Kaiser

libraboy
Registered: Dec 14 2007
Posts: 94
Hi ALL

Thank you so much for all your help! It works now.

Thanks