Expand my Community achievements bar.

Livecycle ES4 displaying text box based on user input

Avatar

Former Community Member

Using a dropdown box displaying 1-10, I want the user to be able to select a number and that many text boxes display below. It would be similar to a purchase order where the user puts that there are for example 5 items that they wish the purchase and after input, that many text boxes are displayed for the user to be able to type into. Any thoughts on how to do this?

1 Reply

Avatar

Level 2

I think this is what you are trying to do I hope it helps.

try changing fields to invisible, then in the change event of DDL

if (this.rawValue == "1"){

textBox1.presence = "visible"

  textBox2.presence = "visible"

  textBox3.presence = "invisible"

textBox4.presence = "invisible"

}else if (this.rawValue == "2"){

textBox1.presence = "invisible"

  textBox2.presence = "invisible"

textBox3.presence = "visible"

  textBox4.presence = "visible"

}