0 Replies Latest reply: Aug 7, 2011 1:26 AM by Heavy E RSS

    Help with multiple selections needed

    Heavy E Community Member

      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