Expand my Community achievements bar.

Beginner - drop down list selection to trigger a new field in my form

Avatar

Former Community Member

Hello Everyone,

I hope someone will be able to help me out here.

I am very new to LiveCycle Designer and i am trying to create a very basic form for my company.

I have a drop down box which has a selection of 9 possible answers, when 1 of the answers is selected (911 - Social Donation) i want a box to pop up on my form titled 'Charity No.' which has to be populated with a charity number and this field must be a mandorty filled that has to be completed.

I have tried many things to get this to work and it can't get my head around it.

I know for all you people it is probably a very simple thing, so any help would be greatly appreciated.

My pdf file is below

https://acrobat.com/#d=wnQsvVAIdlql3LSV-F0aAw

Regards

Mindi

1 Reply

Avatar

Level 6

I cannot access your form but how about this (if I understand the problem):

I'm guessing that it doesn't matter which choice is made from the droplist.

A hidden text field that appears when a choice is made.

Droplist named (charitylist)

The  hidden field is named (charityno)

On the change event of charitylist place this code:

if (xfa.event.newText=="911-Social Donation")
{

charityno.presence ="visible"

}

else

{

charityno.presence="hidden";

}

You can set the charityno text field to mandatory by using the Value tab on the Object pallette and select User Entered required.

repeat the code for each option.

I'm not a programmer so I'm sure there are other solutions.