Step 1: Check us out

You don't have to be a member to look at any content on the site. Increase your expertise with our helpful tutorials, videos, forums, and sample PDFs.

Step 2: Sign up for a free account

Like what you see? Take the next step and become a member. Register now to get discounts, attend eSeminars, ask questions and more.

Step 3: Start participating

Get the most out of your membership. Post in the forums, create your profile, submit to the gallery, attend a user group meeting. Log In now.

Acrobat User Community Forums

You are not logged in.     Log in to your AUC account.     Don't have an account? Sign up today

#1 2010-01-30 12:29:33

libraboy
Member
Registered: 2007-12-14
Posts: 57

Dropdown List

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 8.2 / Windows

Offline

 

#2 2010-01-30 16:14:41

pforms
Member
Registered: 2009-11-17
Posts: 44

Re: Dropdown List

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';

Offline

 

#3 2010-01-30 17:39:24

libraboy
Member
Registered: 2007-12-14
Posts: 57

Re: Dropdown List

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 :(

Offline

 

#4 2010-02-02 09:04:07

matka
Member
Registered: 2007-06-26
Posts: 8

Re: Dropdown List

Are you sure that you are using JavaScript and not Formcalc?
I think the sample above will work

Offline

 

#5 2010-02-03 14:10:40

libraboy
Member
Registered: 2007-12-14
Posts: 57

Re: Dropdown List

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 :)

Offline

 

#6 2010-02-03 14:16:01

gkaiseril
Expert

From: Chicago, IL US
Registered: 2006-02-24
Posts: 3075

Re: Dropdown List

Have you read Thom Parker's tutorial Programming List and Combo fields in Acrobat and LiveCycle forms - Part 1. Make sure you read and download the LiveCycle section and file.

Offline

 

#7 2010-02-03 15:50:08

libraboy
Member
Registered: 2007-12-14
Posts: 57

Re: Dropdown List

Hi ALL

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

Thanks

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2005 Rickard Andersson