Skip navigation
Heavy E
Currently Being Moderated

Help with multiple selections needed

Aug 7, 2011 1:26 AM

Hi All,

 

I used this forum where I was given an answer to my question (Thanks Paul). My question now is:

 

I have a drop list with script behind it that makes a text field visible:

 

if (xfa.event.newText=="Vacancy")
form1.SBF00.position1.presence= "visible";
else form1.SBF00.position1.presence= "hidden";

 

The issue I have now is that more than one entry in the drop list required the text field to become visible. I did try this:

 

(First line on form)

 

if (xfa.event.newText=="Vacancy")or

(xfa.event.newText=="Sickness")or

(xfa.event.newText=="Annual Leave")
form1.SBF00.position1.presence= "visible";
else form1.SBF00.position1.presence= "hidden";

 

(Second line on form)

 

if (xfa.event.newText=="Vacancy")or

(xfa.event.newText=="Sickness")or

(xfa.event.newText=="Annual Leave")
form1.SBF00.position2.presence= "visible";
else form1.SBF00.position2.presence= "hidden";

 

 

I have the form set up with multiple lines that the end user can move down should they need more than one entry.It sort of works but if I select Sickness for example, the next box down (position2) doesn't show the text box visible if I choose, for instance, 'Vacancy'.

 

Thanks everyone.

 

Heavy E

 

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points