1 Reply Latest reply on Nov 28, 2015 8:40 AM by try67

    show hide textbox if then statement from listbox


      I have a dropdown box called Color with three options for user input:  "Blue", "Green", "Select One"


      My textbox called FavCarType is initially hidden and should not show whenever "Select One" is chosen, however if either "Blue" or "Green" is selected, I want the textbox FavCarType visible for the user to input. 


      I'm thinking an If/then/else statement would be the best solution in the Validate- Run Javascript box of the dropdown box Color. 


      I'm new to Javascript- can someone share the javascript that would work with this example?