Livecycle ES4 displaying text box based on user input

kyliel89045886

03-09-2015

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?

Accepted Solutions (0)

Answers (1)

Answers (1)

pauly225

04-09-2015

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"

}