Skip to main content
Known Participant
May 11, 2013
Question

display Multiple textfield by one combobox choice

  • May 11, 2013
  • 1 reply
  • 1310 views

Hi experts,

Need to display Multiple textfield by select one choice from combobox, how can I do that?

The textfields are ready texts and hidden, just appear when select something from combobox, one textfield has many data in the name: txt1, txt2, txt3, ...

The image will explain idea:

Thanx in advanced

This topic has been closed for replies.

1 reply

Ned Murphy
Brainiac
May 11, 2013

You din't have to make different textfields appear.  You can use the same ones and dynamically write the data into them when a selection is made. 

You could create an array (or arrays) that hold the data in the same indexing as the combobox, so that when a selection is made you can used the selectedIndex property of the combobox the extract the data from the array(s).

Ritchy GHAuthor
Known Participant
May 11, 2013

Thank you for answer Mr. Ned Murphy

But I need 3 textfields because everyone has a different data and I want to connect it all with one choice of combobox

Could you write it as codes please sir?

Ned Murphy
Brainiac
May 11, 2013

Yes, you need three textfields, but not more than that.  I will not be writing your code for you.  GIve it a try and if you can't get it working, post the code that isn't working.  You should research the ComboBox component in the help documentation if you have no familiarity with using it.