3 Replies Latest reply on Sep 27, 2012 6:04 PM by vJnr

    Un-hidden a field when a value in a drop down list is selected

    vJnr

      Hi guys, so far this site has been very useful. Thank you

       

      But I have a little problem that I'm not sure how to tackle, so I have a hidden field below a drop down list. My goal is to make the hidden field visible when a certain value in the drop down list is selected

       

      Untitled.png

       

      How do I go about doing that?

       

      I've tried

       

      if(form.legalstatus.rawValue == "1") (there's many choices)

      {

           form.size.presence = "visible";

      }

      else

      {

           form.size.presence = "hidden";

      }

       

      This doesn't work, and it also make the hidden field visible no matter what answer is selected.

       

      Thanks in advance for any advice.